implement FilterSpec class, you can got it
lee wrote:
> Guys,
>
> Is there a way of setting the default value for a filter in the admin
> site?
>
> Class Account(models.model):
> isClosed = models.BooleanField(blank=True)
> name = models.CharField(core=True, max_length=255,unique=True)
>
This is just an idea... didn't try this.
Could you not use HttpRedirect in your url conf to redirect the
standard view
of that models admin with the default filter value?
This is not the most convenient way, but it should work...
On 26 Jun., 14:25, lee <[EMAIL PROTECTED]> wrote:
> Guys,
>
> Is th
Guys,
Is there a way of setting the default value for a filter in the admin
site?
Class Account(models.model):
isClosed = models.BooleanField(blank=True)
name = models.CharField(core=True, max_length=255,unique=True)
class Admin:
list_filter = ['isClosed']
On the admin pag
3 matches
Mail list logo