Hi, looking at the new class-based views for 1.3, there doesn't appear
to be an easy way to add row-level permission hooks to the views (as
one can do in ModelAdmin). It seems a strange omission as this should
be quite straightforward and is an extremely common use-case.

For example, if I have a BlogPostEditView I should be able to specify
a has_permission() method, e.g.:

class BlogPostEditView(UpdateView):

     def has_permission(self, inst):
          return request.user.id == inst.author_id


Are row-level permissions in the works for class-based views ?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to