Changes between Version 2 and Version 3 of Ticket #24541, comment 4
- Timestamp:
- Mar 26, 2015, 9:30:13 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24541, comment 4
v2 v3 10 10 PollFormSet = modelformset_factory(Poll, fields='__all__') 11 11 if request.method == 'POST': 12 formset = PollFormSet(request.POST, initial=[{'question': 2}, {'question':4}])12 formset = PollFormSet(request.POST, initial=[{'question': 'Foo'}, {'question': 'Bar'}]) 13 13 if formset.is_valid(): 14 14 obj_list = formset.save()