that was the first thing I did but, it didn't work. So, I had to add a
manager to the admin site this way:

class AnyModel(models.Model):
    ...
    class Admin:
        manager = CustomManager()

this is an undocumented way

On 9/27/07, jake elliott <[EMAIL PROTECTED]> wrote:
>
>
> hi jose
>
> Lic. José M. Rodriguez Bacallao wrote:
> > how can I limit items in "change list" of the admin interface?
>
> the admin will use your model's default manager (the first specified
> manager) to filter results.
>
> more information here:
>
> http://www.djangoproject.com/documentation/model-api/#modifying-initial-manager-querysets
>
> best,
> jake
>
> >
>


-- 
Lic. José M. Rodriguez Bacallao
Cupet
-----------------------------------------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo
mismo.

Recuerda: El arca de Noe fue construida por aficionados, el titanic por
profesionales
-----------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to