Stop processing on error.

see #1035
This commit is contained in:
Antoine Nguyen
2017-02-21 13:51:32 +01:00
parent b359724561
commit 7e6f02a536
+1 -1
View File
@@ -104,7 +104,7 @@ class DomainFormGeneral(forms.ModelForm, DynamicForm):
self.add_error(
"default_mailbox_quota",
_("Cannot be greater than domain quota"))
if self.user.role == "Resellers":
elif self.user.role == "Resellers":
limit = self.user.userobjectlimit_set.get(name="quota")
if limit.max_value != 0:
quota = self.cleaned_data["quota"]