The filters are not documented. You can learn how they works, looking at the file DJANGO_PATH/contrib/admin/filterspecs.py I found DateFieldFilterSpec to be useful whenever you need to filter something that is in a range, not just for calendar matters.
On Mon, May 3, 2010 at 23:23, Thales <thales....@gmail.com> wrote: > Good evening, > > I am trying to create a custom filter in my admin. It should be in the > general page Modify. > > If a put in the filter_list the content 'project__year', it shows me > the years avaiable on the right menu and filters well. > > But I want to define the default value (the default year selected) and > the avaiable options (maybe I dont want to show all the years there). > > I am sorry it sounds very easy, but I couldn't find inside the > documentation how can I do it. > > Thanks > Thales > > -- > 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. > > -- 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.