Define AppConfig.default_auto_field to match the initial migration

This patch removes a warning but also prevents creating migrations in projects
where DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField".
This commit is contained in:
Williams Mendez 2021-12-13 14:07:03 -04:00 committed by Hasan Ramezani
parent 78302f6b35
commit c8a2586892

6
defender/apps.py Normal file
View file

@ -0,0 +1,6 @@
from django.apps import AppConfig
class DefenderAppConfig(AppConfig):
name = "defender"
default_auto_field = "django.db.models.AutoField"