I'm having a bit of confusion as to how to best approach the display of edit/delete/create links in my templates as my application needs this to be based on group permissions OR cascading object owenership.
The situation is I have two models with a FK relationship and each has a method to check if a user is the owner of that object or it's parent object. class Project(models.Model): owner = models.ForeignKey(User) def is_owner(self, user): ''' Encapulated method for checking owner ship. Required for dectorators. ''' if user == self.owner: return True return False ... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---