mirror of
				https://github.com/SectorLabs/django-localized-fields.git
				synced 2025-10-31 02:48:56 +03:00 
			
		
		
		
	Merge pull request #85 from SectorLabs/default-callables-admin-form
Fix callable default usage in admin forms
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user