mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-04-24 19:32:53 +03:00
Merge pull request #85 from SectorLabs/default-callables-admin-form
Fix callable default usage in admin forms
This commit is contained in:
commit
f982eac7d8
@ -34,6 +34,9 @@ class LocalizedFieldForm(forms.MultiValueField):
|
||||
|
||||
fields = []
|
||||
|
||||
# Do not print initial value in html in the form of a hidden input. This will result in loss of information
|
||||
kwargs["show_hidden_initial"] = False
|
||||
|
||||
for lang_code, _ in settings.LANGUAGES:
|
||||
field_options = dict(
|
||||
required=required
|
||||
|
Loading…
x
Reference in New Issue
Block a user