Skip to content

Commit

Permalink
Use default app config discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisfreitag authored and Asif Saif Uddin committed May 7, 2021
1 parent 9b396d7 commit 5764d4d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion taggit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
try:
import django
except ImportError:
# setup.py and docs do not have Django installed.
django = None

VERSION = (1, 4, 0)
__version__ = ".".join(str(i) for i in VERSION)

default_app_config = "taggit.apps.TaggitAppConfig"
if django and django.VERSION < (3, 2):
default_app_config = "taggit.apps.TaggitAppConfig"

0 comments on commit 5764d4d

Please sign in to comment.