#243 fixt but, which created a second version for a new application

This commit is contained in:
Oskar Hahn 2012-07-01 17:20:02 +02:00
parent e1d13e31ae
commit 8d4df3236b

View File

@ -217,10 +217,10 @@ def edit(request, application_id=None):
del_supporters = True
original_supporters = []
if is_manager:
if application:
if application: # Edit application
for s in application.supporter.all():
original_supporters.append(s)
application = managerform.save()
application = managerform.save(commit=False)
elif application_id is None:
application = Application(submitter=request.user)
application.title = dataform.cleaned_data['title']