Hi Peter,
Am 2012-01-07 03:40, schrieb Peter of the Norse:
One possibility is to try two excludes.
bad_authors = Authors.objects.exclude(pk__in=SetOfAuthors)
qs = Entry.objects.exclude(authors__in=bad_authors)
This will return all entries that don't have authors in SetOfAuthors. It might
even be
easier, if you can skip creating SetOfAuthors in the first place.
That works very well! :-)
Thank you very much for your help!
Best regards,
Carsten
--
Cafu - the open-source Game and Graphics Engine
for multiplayer, cross-platform, real-time 3D Action
Learn more at http://www.cafu.de
--
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+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.