Skip to content

Commit

Permalink
chore: Avoid deprecation warning in Django 3.2+ (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Nov 9, 2021
1 parent 26b9a78 commit 1e0b4fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modeltranslation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
Version code adopted from Django development version.
https://github.com/django/django
"""
import django

VERSION = (0, 17, 3, 'final', 0)
default_app_config = 'modeltranslation.apps.ModeltranslationConfig'

if django.VERSION < (3, 2):
default_app_config = 'modeltranslation.apps.ModeltranslationConfig'


def get_version(version=None):
Expand Down

0 comments on commit 1e0b4fe

Please sign in to comment.