Skip to content

Commit 99e8f24

Browse files
authored
method clean_subject_location not implemented correctly (#1464)
1 parent 0402d66 commit 99e8f24

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

filer/admin/imageadmin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ def clean_subject_location(self):
4646
for subject location widget to receive valid coordinates on field
4747
validation errors.
4848
"""
49-
cleaned_data = super().clean()
50-
subject_location = cleaned_data['subject_location']
49+
subject_location = self.cleaned_data['subject_location']
5150
if not subject_location:
5251
# if supplied subject location is empty, do not check it
5352
return subject_location
@@ -69,7 +68,7 @@ def clean_subject_location(self):
6968
else:
7069
return subject_location
7170

72-
self._set_previous_subject_location(cleaned_data)
71+
self._set_previous_subject_location(self.cleaned_data)
7372
raise forms.ValidationError(
7473
string_concat(
7574
err_msg,

0 commit comments

Comments
 (0)