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

Django flag howto

I’ve had django-flag on my todo-list , finally got around to it and found that there was no documentation written for it.  Well no worries a quick browse through all the code in the package made it easy to figure out the workings.  Anyhow here’s how you use it !

1. Install via pip

pip install django-flag Continue Reading