Hi Peter,

> What should I pass as a dummy queryset parameter: this is positional
> mandatory argument and I cannot pass None. 

If you're going to replace it before you render the form, it really doesn't
matter - any queryset will do.

I used <class>.objects.all(), but that has the disadvantage of actually
querying the database for a list that I then throw away when I change the
queryset.

I see that the trunk now has .none(), which is probably perfect for this
situation. If you're using 0.96, though, the ideal is probably some queryset
that you know will return no (or very few) objects.

Chris




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