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
>
> Li
I solve this problem adding a custom manager with get_query_set method
overridden to the admin interface. I don't know if this is the right way but
it solve my filtering problems in the change list. Any suggestions?
class AnyModel(models.Model):
...
class Admin:
manager = CustomMan
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
3 matches
Mail list logo