else formset LimitsEventFormSet prefix events initial event event even

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
else:
formset = LimitsEventFormSet(prefix='events',
initial = [{'event': event.event.id,
'funding': event.funding,
'id': event.id} for event in process.data.limits.limitsevent_set.all()])
form = LimitsForm(initial = {'disposal': process.data.limits.disposal,
'milestone': process.data.limits.milestone,},
prefix = 'limits')
return render_to_response('statecontractplanning/limits_edit.html',
{'process': process,
'formset': formset,
'form': form},
context_instance = RequestContext(request))