mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
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:
parent
78302f6b35
commit
c8a2586892
1 changed files with 6 additions and 0 deletions
6
defender/apps.py
Normal file
6
defender/apps.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class DefenderAppConfig(AppConfig):
|
||||
name = "defender"
|
||||
default_auto_field = "django.db.models.AutoField"
|
||||
Loading…
Reference in a new issue