[finish #27591051] check for license change before compaining about license change

pull/1/head
eric 2012-04-05 17:20:35 -04:00
parent 69df6e503d
commit 224bebfb80
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class ManageCampaignForm(forms.ModelForm):
def clean_license(self):
new_license = self.cleaned_data['license']
if self.instance:
if self.instance.status == 'ACTIVE':
if self.instance.status == 'ACTIVE' and self.instance.license != new_license:
raise forms.ValidationError(_('The license for an ACTIVE campaign cannot be changed.'))
return new_license