Re: Restrict users to their own data

2008-09-27 Thread Alessandro
2008/9/28 Alessandro Ronchi <[EMAIL PROTECTED]>: > 2008/9/26 Orne <[EMAIL PROTECTED]>: >> >> This example doesn't work for me: >> Error: 'super' object has no attribute 'filter' I use this code (it works with django 1.0): def queryset(self, request): # Limit the queryset to some

Re: Restrict users to their own data

2008-09-27 Thread Alessandro Ronchi
2008/9/26 Orne <[EMAIL PROTECTED]>: > > This example doesn't work for me: > Error: 'super' object has no attribute 'filter' I use this code (it works with django 1.0): def queryset(self, request): # Limit the queryset to some subset based on the value of user. qs =

Re: Restrict users to their own data

2008-09-26 Thread Orne
This example doesn't work for me: Error: 'super' object has no attribute 'filter' At the Django Wiki (http://code.djangoproject.com/wiki/ NewformsAdminBranch) I found this: class BookAdmin(admin.ModelAdmin): def queryset(self, request): """ Filter based on the current user.

Re: Restrict users to their own data

2008-09-24 Thread solomon71
On Sep 11, 11:51 am, Simon Willison <[EMAIL PROTECTED]> wrote: > On Sep 11, 5:23 pm, Glimps <[EMAIL PROTECTED]> wrote: > > >     I would like torestrictusersto thedatathey can see/modify/ > > delete on a table. I have a Reservation table that holds reservations > > for multiple banners of

Re: Restrict users to their own data

2008-09-11 Thread Simon Willison
On Sep 11, 5:23 pm, Glimps <[EMAIL PROTECTED]> wrote: >     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

Restrict users to their own data

2008-09-11 Thread Glimps
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