Hi all,

I have a model formset as

RowFormSet = modelformset_factory(Row, extra=7)

I want to initially display 7 rows. And give user a link to add
another row
one at a time. Hence I used extra = 7 and omitted max_num parameter.

So while saving what happens is that, it adds another 7 rows to the
existing number of rows
and then it gets saved. I just want the existing number of rows to get
saved and also, want to
display initially 7 rows and put no restriction on max number of rows
so that user can keep adding rows. I do not see a parameter like
initial_number_rows that we can pass while initializing
modelformset_factory.

Can anyone help me out here.


Thanks,
Sincerely,
Sonal.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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