Skip to content

Commit

Permalink
Merge pull request #656 from karlwnw/feature/django32-compat
Browse files Browse the repository at this point in the history
Fix Django 3.2 warning about default_app_config
  • Loading branch information
benjaoming committed May 17, 2022
2 parents 74a1dac + cd3e9a1 commit a75fbb7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion djmoney/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
__version__ = "2.1.1"
default_app_config = "djmoney.apps.MoneyConfig"

try:
import django

if django.VERSION < (3, 2):
default_app_config = "djmoney.apps.MoneyConfig"
except ModuleNotFoundError:
# this part is useful for allow setup.py to be used for version checks
pass

0 comments on commit a75fbb7

Please sign in to comment.