Skip to content

Commit

Permalink
method clean_subject_location not implemented correctly (#1464)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed May 17, 2024
1 parent 0402d66 commit 99e8f24
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions filer/admin/imageadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ def clean_subject_location(self):
for subject location widget to receive valid coordinates on field
validation errors.
"""
cleaned_data = super().clean()
subject_location = cleaned_data['subject_location']
subject_location = self.cleaned_data['subject_location']
if not subject_location:
# if supplied subject location is empty, do not check it
return subject_location
Expand All @@ -69,7 +68,7 @@ def clean_subject_location(self):
else:
return subject_location

self._set_previous_subject_location(cleaned_data)
self._set_previous_subject_location(self.cleaned_data)
raise forms.ValidationError(
string_concat(
err_msg,
Expand Down

0 comments on commit 99e8f24

Please sign in to comment.