set the extra parameter to 0
On Jul 24, 9:44 pm, derek <de...@thurn.ca> wrote:
> I'm following the instructions here:
>
> http://docs.djangoproject.com/en/dev/topics/forms/modelforms/
>
> But when I do this kind of thing:
>
> formset = AuthorFormSet(queryset=Author.objects.filter
> (name__startswith='O'))
>
> I always get an extra blank form at the end of my formset - regardless
> of how I set up the query set. How can I prevent this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---