On Mon, Jan 5, 2009 at 11:59 PM, Ronny Haryanto <ro...@haryan.to> wrote:
> On Mon, Jan 5, 2009 at 11:52 PM, Bluemilkshake
> <bluemilksh...@googlemail.com> wrote:
>> for category in category_list:
>>    results = results.filter(categories__slug = category.slug)
>
> How about results.filter(category__in=category_list)?

Whoops. Never mind. Replied too fast. Sorry.

Ronny

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to