On Wed, Jan 7, 2009 at 12:30 PM, ZebZiggle <zebzig...@gmail.com> wrote:
> > Hi, > > I have two Model classes: > > class Opportunity(models.Model): > rep = models.ForeignKey(User) > ... > > class Deal(models.Model): > opportunity = models.ForeignKey(Opportunity) > ... > > > I want to limit the admin UI so that users can only see Opportunities > and the related Deals they own. If they attempt to go into the Deal > table directly, again, they should only see their Deals. > > To make it more interesting: Some users (that have a special > permission) should be able to see ALL Opportunities and Deals. > > How can I do this? > I'd start by reading this: http://www.b-list.org/weblog/2008/dec/24/admin/ Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---