Skip to content

Commit

Permalink
[fix] Fixed failing build #268
Browse files Browse the repository at this point in the history
Related to #268
  • Loading branch information
pandafy committed Jan 12, 2022
1 parent 29228a4 commit 4a79813
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions rest_framework_gis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import django

VERSION = (0, 18, 0, 'final')
__version__ = VERSION # alias

Expand All @@ -16,5 +14,10 @@ def get_version():
return version


if django.VERSION < (3, 2):
default_app_config = 'rest_framework_gis.apps.AppConfig'
try:
import django

if django.VERSION < (3, 2):
default_app_config = 'rest_framework_gis.apps.AppConfig'
except ImportError:
pass

0 comments on commit 4a79813

Please sign in to comment.