On 18 Sep 2006, at 16:26, James Bennett wrote:

p.exclude() returns a new QuerySet with the filtering, so you need to

grab the return value, like this:


if len(notsitelist)>=1:

    print "excluding sites: ", notsitelist

    p = p.exclude(fk_site__in=notsitelist)


That was it... silly me, just missed it trying to keep the code simple...

Thanks!! 

tom



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to