On 11/29/06, Bill de hOra <[EMAIL PROTECTED]> wrote:
> something like this:
>
> [[[
> if use_sources:
>    kwargs['sources']= request.GET.getlist('sources')
> if use_level:
>    kwargs['level'] =request.GET['level']
> ...
> results  = NodeEvent.objects.filter(kwargs)
> ]]]

Doing NodeEvent.objects.filter(**kwargs) should work, that's how a
bunch of the generic views build up their filter arguments (and it's a
darned useful convention, too).


-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to