mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-11-01 02:48:58 +03:00
improve functionality of required parameter
This commit is contained in:
@@ -146,8 +146,6 @@ class LocalizedFileField(LocalizedField):
|
||||
|
||||
def formfield(self, **kwargs):
|
||||
defaults = {'form_class': LocalizedFileFieldForm}
|
||||
if 'initial' in kwargs:
|
||||
defaults['required'] = False
|
||||
defaults.update(kwargs)
|
||||
return super().formfield(**defaults)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user