On 6/22/06, MattiasN <[EMAIL PROTECTED]> wrote:
> 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?
Hmmm... Try this, which is slightly sketchy because it bypasses
FilterSpec.register() in favor of the underlying implementation:
FilterSpec.filter_specs.insert(0, (my_func, my_filterspec))
...where my_func and my_filterspec are your func and filterspec.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---