Re: Custom filterspecs - ManyToMany, but inverted
Hi,
does really nobody have an idea how to do it? It would be so great if
somebody could help me. I guess it can'T be that dificult...
Greetings,
Thorsten
On 21 Okt., 09:09, thorstenkranz <thorstenkr...@googlemail.com> wrote:
> Hi,
>
> I'm trying to get some filter for my admin page on a ManyToManyField.
> When I add it to the list_filter of the model admin, the filtering
> works like a charm. But this is not what I want: I'd like to invert
> the results, i.e. I want that only those list entries remain that do
> NOT have this external key in their ManyToManyField. How can I do
> this? I guess I could subclass ChoicesFilterSpec and register it, but
> I do not really know how to invert the selection...
>
> I hope I explained sufficiently well what I want. Thanks in advance
> for your help.
>
> Greetings,
>
> Thorsten
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home