Skip to content

Commit 30cf26a

Browse files
MogostPhotonios
authored andcommitted
Remove default_app_config for Django 3.2 and newer
RemovedInDjango41Warning: 'psqlextra' defines default_app_config = 'psqlextra.apps.PostgresExtraAppConfig'. Django now detects this configuration automatically. You can remove default_app_config.
1 parent 18b3ab5 commit 30cf26a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

psqlextra/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
default_app_config = "psqlextra.apps.PostgresExtraAppConfig"
1+
import django
2+
3+
if django.VERSION < (3, 2): # pragma: no cover
4+
default_app_config = "psqlextra.apps.PostgresExtraAppConfig"

0 commit comments

Comments
 (0)