Solved:
I found this (well hidden) page:
http://code.djangoproject.com/wiki/RowLevelPermissions
I do not know it is not embedded in Admin.site documentation... and why
those fully functional methods are simply hidden in the source code...

On Tue, Jan 19, 2010 at 10:00, Massimiliano della Rovere <
massimiliano.dellarov...@gmail.com> wrote:

> In simpler terms:
> is there a way to filter instances shown with "admin" pages considering the
> logged user id?
> is there a way to "interface" request.User with admin.ModelAdmin ?
>
>
> On Mon, Jan 18, 2010 at 22:33, Massimiliano della Rovere <
> massimiliano.dellarov...@gmail.com> wrote:
>
>> Greetings,
>> I'm here to seek your help:
>> I'm new to Django (I have experience with Prado and Zope3 though).
>>
>> Here is my problem:
>> I created a model having - among the other ones - a status field
>> (approved, draft, proposed, etc) and a reference to the user that created
>> the instance.
>> I'd like to use Admin pages (derived from django.contrib.admin and
>> django.contrib.auth.models.User) to interact with instances of this models.
>> I'm trying to show - in the index (a.k.a. list) page for the instances of
>> this models - only the instances created by the logged user, all of them if
>> the logged user is the administrator and only the approved ones for
>> anonymous users.
>>
>> I could easily resolve the problem with a simple template & view pair, but
>> I was wondering if somehow I can specify in the class derived
>> from admin.ModelAdmin and associated to my model somehow that I want to use
>> a filter (Manager?) that reads a value from request.User.
>>
>
>
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-us...@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