diff options
Diffstat (limited to 'chimere/forms.py')
-rw-r--r-- | chimere/forms.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chimere/forms.py b/chimere/forms.py index 6ab44d3..4c26d52 100644 --- a/chimere/forms.py +++ b/chimere/forms.py @@ -472,9 +472,11 @@ class AreaAdminForm(forms.ModelForm): if not self.cleaned_data.get('upper_left_lat') \ and not self.cleaned_data.get('upper_left_lon') \ and not self.cleaned_data.get('lower_right_lat') \ - and not self.cleaned_data.get('lower_right_lon'): + and not self.cleaned_data.get('lower_right_lon') \ + and not self.cleaned_data.get('area'): msg = _(u"No area selected.") raise forms.ValidationError(msg) + return self.cleaned_data def save(self, *args, **keys): """ |