I'm new to decorators but using them in their basic form fine in
Django so far.

My problem is this.  I have two model edit forms, each has an owner
field that is a FK to a user.

I also have some groups with permissions to edit the models.

What I want to do is setup a 'is_owner_or_has_perm' decorator but I'm
not sure how to handle the OR part of it all.  It seems like I'd have
to pass the decorator both the user and the object I wanted to edit
and I"m not sure how to do that.
--~--~---------~--~----~------------~-------~--~----~
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