A while back I created a customer filter for use in admin. It worked fine, but after svn up I noticed it didn't work anymore.
So I found this. http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/filterspecs.py r3136 The commit message says: "Added AllValuesFilterSpec to admin changelist filters, which lets you put any arbitrary field in Admin.list_filter. To determine the list of all available choices, Django does a SELECT DISTINCT. Note this is backwards-incompatible for people who have defined and registered their own FilterSpecs, because each FilterSpec now takes a 'model' parameter." However I don't understand what I should change. "beacause each FilterSpec now takes a model parameter" doesn't mean anything to me... How do I register the filterspec now? Where should I place it and so on. (The dirty fix is of course pasting my custom filter into the filterspecs.py file before AllValuesFilterSpec, but that is messy) So the question how is it done properly? I'm thankful for any help I can get Mattias Keep up the excellent work. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---

