Skip to content

Commit f6cadb9

Browse files
authored
Merge branch 'django-cms:master' into master
2 parents 7f4646b + 4d3e004 commit f6cadb9

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
# args: [--target-version, "2.2"]
2222

2323
- repo: https://github.com/PyCQA/flake8
24-
rev: 6.1.0
24+
rev: 7.0.0
2525
hooks:
2626
- id: flake8
2727

@@ -31,7 +31,7 @@ repos:
3131
- id: yesqa
3232

3333
- repo: https://github.com/pre-commit/pre-commit-hooks
34-
rev: v4.5.0
34+
rev: v4.6.0
3535
hooks:
3636
- id: check-merge-conflict
3737
- id: mixed-line-ending

filer/admin/fileadmin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def clean(self):
4848
validate_upload(
4949
file_name=cleaned_data["file"].name,
5050
file=file.file,
51-
owner=cleaned_data["owner"],
51+
owner=cleaned_data.get("owner"),
5252
mime_type=mime_type,
5353
)
5454
file.open("r")

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)