Do not set default_app_config for Django 3.2 and newer

See: See: https://docs.djangoproject.com/en/3.2/releases/3.2/#what-s-new-in-django-3-2
This commit is contained in:
Swen Kooij 2021-11-08 14:36:45 +02:00
parent f024e4feb5
commit 7902d8225a

View File

@ -1 +1,4 @@
default_app_config = "localized_fields.apps.LocalizedFieldsConfig"
import django
if django.VERSION < (3, 2):
default_app_config = "localized_fields.apps.LocalizedFieldsConfig"