File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff 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" )
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments