Skip to content

Commit

Permalink
Fix Django 3.2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
codingjoe committed Mar 18, 2021
1 parent aedbe07 commit 2db9315
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion hijack/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
default_app_config = "hijack.apps.HijackConfig"
import django

if django.VERSION < (3, 2):
default_app_config = "hijack.apps.HijackConfig"
5 changes: 4 additions & 1 deletion hijack/contrib/admin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
default_app_config = "hijack.contrib.admin.apps.HijackAdminConfig"
import django

if django.VERSION < (3, 2):
default_app_config = "hijack.contrib.admin.apps.HijackAdminConfig"

from .admin import HijackUserAdminMixin # noqa

0 comments on commit 2db9315

Please sign in to comment.