Hi all - hoping I can get some insight. Suppose we have a the following models:
- Regions (e.g. North, South, East, West) - Users (site editors) - Objects (e.g. Cars) Each Object can be tied to only one Region (ForeignKey). Each User can be tied to multiple Regions (M2M). When a User signs in to the Django admin, what would be the best method for only allowing a User to see Objects that are tied to a Region that the User is also tied to? A working example might be: John signs in to the site. He is assigned to North and East Regions. He can only edit Cars that are tied to the North and East regions, and should never see Cars that are tied to South and West. I thought about using the following methods: - Setting up Regions using the Sites framework - Subclassing AdminSite and customizing - Creating custom admin views If anyone has any suggestions or pointers to a starting point for some more research, I'd appreciate it. Thanks! Rich --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---