Hi,
I would like to restrict users to the data they can see/modify/
delete on a table. I have a Reservation table that holds reservations
for multiple banners of Restaurant chain. I don't want the user from
franchiseX to be able to see/confirm reservations from franchiseY.
Since all the add/edit/delete is made with the admin interface (Django
1.0) I went and search for something I could override in the
ModelAdmin class. No success.
I went and try to see if there was a signal I could use, something
like post_model_get, nothing there either.
Now my idea was to add a "User" field (ForeignKey to
django.contrib.auth.models.User) in the Reservation table. Check what
groups the user belongs to and only allow operations on the record for
users of the same group.
Where should I look to do that?
Better ideas?
TIA
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---