mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-04-25 03:32:55 +03:00
Fixed a bug that would make creation forms crash
This commit is contained in:
parent
dbcfcd1503
commit
7e410e857b
@ -37,6 +37,10 @@ class LocalizedFieldWidget(MultiWidget):
|
||||
|
||||
for lang_code, _ in settings.LANGUAGES:
|
||||
result.append(value.get(lang_code))
|
||||
if value:
|
||||
result.append(value.get(lang_code))
|
||||
else:
|
||||
result.append(None)
|
||||
|
||||
return result
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user