Set LOCALIZED_FIELDS_EXPERIMENTAL to True by default

This commit is contained in:
Swen Kooij 2019-10-20 18:05:06 +03:00
parent 2bcab4d83a
commit 92b1dce239
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class LocalizedFieldsConfig(AppConfig):
name = "localized_fields"
def ready(self):
if getattr(settings, "LOCALIZED_FIELDS_EXPERIMENTAL", False):
if getattr(settings, "LOCALIZED_FIELDS_EXPERIMENTAL", True):
for _, clazz in inspect.getmembers(lookups):
if not inspect.isclass(clazz) or clazz is LocalizedLookupMixin:
continue

View File

@ -69,7 +69,7 @@ class LocalizedField(HStoreField):
"""
if not value:
if getattr(settings, "LOCALIZED_FIELDS_EXPERIMENTAL", False):
if getattr(settings, "LOCALIZED_FIELDS_EXPERIMENTAL", True):
return None
else:
return cls.attr_class()