From 99e8f249a052ff5cd04a08efe4bee68501458277 Mon Sep 17 00:00:00 2001 From: Jacob Rief Date: Fri, 17 May 2024 12:18:46 +0200 Subject: [PATCH] method clean_subject_location not implemented correctly (#1464) --- filer/admin/imageadmin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/filer/admin/imageadmin.py b/filer/admin/imageadmin.py index 8182a190d..c58ed6264 100644 --- a/filer/admin/imageadmin.py +++ b/filer/admin/imageadmin.py @@ -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 @@ -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,