mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-10-30 02:28:57 +03:00
Now inheriting from PostgresModel for upserts
This commit is contained in:
@@ -18,12 +18,6 @@ class LocalizedField(HStoreField):
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""Initializes a new instance of :see:LocalizedField."""
|
||||
|
||||
required = kwargs.get('required')
|
||||
if required is None:
|
||||
required = [settings.LANGUAGE_CODE]
|
||||
|
||||
kwargs['required'] = required
|
||||
|
||||
super(LocalizedField, self).__init__(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user