[finish #27591051] check for license change before compaining about license change
parent
69df6e503d
commit
224bebfb80
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue