Re: default value for filter in admin pages

2008-07-12 Thread xlty
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) >

Re: default value for filter in admin pages

2008-06-26 Thread OliverMarchand
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

default value for filter in admin pages

2008-06-26 Thread lee
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