mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-04-25 03:32:55 +03:00
Fix PEP8 violations
This commit is contained in:
parent
06873afbda
commit
3b28a5e707
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@ env/
|
||||
# Ignore Python byte code cache
|
||||
*.pyc
|
||||
__pycache__
|
||||
.cache/
|
||||
|
||||
# Ignore coverage reports
|
||||
.coverage
|
||||
|
@ -5,7 +5,6 @@ from .fields import LocalizedField, LocalizedCharField, LocalizedTextField, \
|
||||
LocalizedFileField
|
||||
|
||||
|
||||
|
||||
FORMFIELD_FOR_LOCALIZED_FIELDS_DEFAULTS = {
|
||||
LocalizedField: {'widget': widgets.AdminLocalizedFieldWidget},
|
||||
LocalizedCharField: {'widget': widgets.AdminLocalizedCharFieldWidget},
|
||||
|
@ -121,8 +121,9 @@ class LocalizedFileFieldForm(LocalizedFieldForm, forms.FileField):
|
||||
field_initial = initial[i]
|
||||
except IndexError:
|
||||
field_initial = None
|
||||
|
||||
if field_value in self.empty_values and \
|
||||
field_initial in self.empty_values:
|
||||
field_initial in self.empty_values:
|
||||
if self.require_all_fields:
|
||||
# Raise a 'required' error if the MultiValueField is
|
||||
# required and any field is empty.
|
||||
|
Loading…
x
Reference in New Issue
Block a user