Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default auto field #74

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sebastianhaas
Copy link
Collaborator

In order to avoid a database migration, we set default_auto_field to 'django.db.models.BigAutoField' for the VerifyEmail app. This is required, since Django defaults to django.db.models.AutoField since Django 3.2 (https://docs.djangoproject.com/en/3.2/ref/settings/#std-setting-DEFAULT_AUTO_FIELD).

By setting default_auto_field to the big auto field, the VerifyEmail app sticks with the existing big auto field in the database.

In order to avoid a database migration, we set default_auto_field to 'django.db.models.BigAutoField' for the VerifyEmail app. This is required,
since Django defaults to django.db.models.AutoField since Django 3.2 (https://docs.djangoproject.com/en/3.2/ref/settings/#std-setting-DEFAULT_AUTO_FIELD).

By setting default_auto_field to the big auto field, the VerifyEmail app sticks with the existing big auto field in the database.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant