reset selected edition on campaign save

pull/1/head
eric 2014-04-29 14:51:49 -04:00
parent 390e6864f5
commit 59997cfda1
1 changed files with 2 additions and 1 deletions

View File

@ -665,6 +665,7 @@ def manage_campaign(request, id, action='manage'):
form.save()
campaign.dollar_per_day = None
campaign.set_dollar_per_day()
campaign.work.selected_edition=campaign.edition
if campaign.type in {BUY2UNGLUE,THANKS} :
offers= campaign.work.create_offers()
for offer in offers:
@ -672,7 +673,7 @@ def manage_campaign(request, id, action='manage'):
campaign.update_left()
if campaign.type is THANKS :
campaign.work.description = form.cleaned_data['work_description']
campaign.work.save()
campaign.work.save()
alerts.append(_('Campaign data has been saved'))
activetab = '#2'
else: