[Fixed]-Django: Permissions based on Model Instance

3๐Ÿ‘

โœ…

Model (table) level permissions can be achieved using the groups facility provided by Django auth. Groups let you create custom permissions at a model level. Instance (row) level would be trickier. You would most likely have to write a custom mechanism to accomplish this.

Here is a Django Snippet that might give you some ideas.

๐Ÿ‘คManoj Govindan

15๐Ÿ‘

Django Guardian seems to be the best solution today for Model instance level permissions.

๐Ÿ‘คMyers Carpenter

2๐Ÿ‘

There was an open source release for row/object level permissions by the washington times team that might be of use:

๐Ÿ‘คars

Leave a comment