Django row based user permission

Went google hunting today for a decorator to manage permissions per record. Found a cool snippet here , modified it to work and to my particular needs, this should work on any model that has a fk pointing to User.

To use just add the following on top of your view, like so: Continue Reading