# DEFAULT_AUTO_FIELD
{{tag>django model id autofield}}
brand.User: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the BrandConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
# settings.py
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
기존대로 유지하고 싶은 경우에는
# settings.py
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
## Ref
- [BigAutoField](https://docs.djangoproject.com/en/3.2/ref/models/fields/#bigautofield)
- [AutoField](https://docs.djangoproject.com/en/3.2/ref/models/fields/#autofield)
- https://dev.to/rubyflewtoo/upgrading-to-django-3-2-and-fixing-defaultautofield-warnings-518n