Skip to content

Commit 9d415c3

Browse files
authored
Fix default_app_config deprecation
Django 3.2 automatically detects AppConfig and therefore this setting is no longer required. https://docs.djangoproject.com/en/dev/releases/3.2/#automatic-appconfig-discovery
1 parent c890b70 commit 9d415c3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
default_app_config = 'rest_framework_simplejwt.token_blacklist.apps.TokenBlacklistConfig'
1+
import django
2+
3+
if django.VERSION < (3, 2):
4+
default_app_config = 'rest_framework_simplejwt.token_blacklist.apps.TokenBlacklistConfig'

0 commit comments

Comments
 (0)