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