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?

Thx!
-Z
--~--~---------~--~----~------------~-------~--~----~
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