diff --git a/post_office/__init__.py b/post_office/__init__.py index 985aa401..28f31ab2 100644 --- a/post_office/__init__.py +++ b/post_office/__init__.py @@ -1,3 +1,4 @@ +import django from ast import literal_eval from os.path import dirname, join @@ -6,4 +7,5 @@ from .backends import EmailBackend -default_app_config = 'post_office.apps.PostOfficeConfig' +if django.VERSION < (3, 2): # pragma: no cover + default_app_config = 'post_office.apps.PostOfficeConfig'