parent
5eb5b093a3
commit
26c0ad2b27
|
@ -818,7 +818,7 @@ def rh_tools(request):
|
|||
else:
|
||||
campaign.edit_managers_form=EditManagersForm(instance=campaign, prefix=campaign.id)
|
||||
if claim.status == 'active' and claim.can_open_new:
|
||||
if request.method == 'POST' and int(request.POST['work']) == claim.work.id :
|
||||
if request.method == 'POST' and request.POST.has_key('work') and int(request.POST['work']) == claim.work.id :
|
||||
claim.campaign_form = OpenCampaignForm(request.POST)
|
||||
if claim.campaign_form.is_valid():
|
||||
new_campaign = claim.campaign_form.save(commit=False)
|
||||
|
|
Loading…
Reference in New Issue