Row level permission -- status?

31 views
Skip to first unread message

gustav...@gmail.com

unread,
May 15, 2009, 11:20:08 AM5/15/09
to Django users
Hello

I was investigating the current state of things in terms of row based
permission but could not get an up to date information. I did check
http://code.djangoproject.com/wiki/RowLevelPermissions, but last
commit on this branch was done 2 years ago.

Is there any other solution available that would allow row level
permission?

Thanks
Gustavo

James Bennett

unread,
May 15, 2009, 11:56:02 AM5/15/09
to django...@googlegroups.com
On Fri, May 15, 2009 at 11:20 AM, gustav...@gmail.com
<gustav...@gmail.com> wrote:
> Is there any other solution available that would allow row level
> permission?

The Django admin's ModelAdmin class, which you must subclass to
provide an admin interface for your models, has methods (consult
source) which determine whether a given user has permission to edit a
given object. By default these are simply the class-level permissions,
but you are free to override them and will have access to the
individual object to perform whatever checks you like.

Personally, I think this obsoletes any attempt at generic "row-level
permissions" implementations.


--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

Reply all
Reply to author
Forward
0 new messages