Changes between Version 1 and Version 2 of Ticket #24541, comment 4


Ignore:
Timestamp:
Mar 26, 2015, 9:29:28 AM (10 years ago)
Author:
Johannes Maron

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24541, comment 4

    v1 v2  
    1010    PollFormSet = modelformset_factory(Poll, fields='__all__')
    1111    if request.method == 'POST':
    12         formset = PollFormSet(request.POST, inital=[{'vote': 2}, {'vote':4}])
     12        formset = PollFormSet(request.POST, initial=[{'question': 2}, {'question':4}])
    1313        if formset.is_valid():
    1414            obj_list = formset.save()
Back to Top