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

default Autofield and django 3.2 #159

Open
karimone opened this issue Oct 12, 2021 · 0 comments
Open

default Autofield and django 3.2 #159

karimone opened this issue Oct 12, 2021 · 0 comments

Comments

@karimone
Copy link

karimone commented Oct 12, 2021

Starting new projects in Django 3.2, the default type for primary keys is set to a BigAutoField which is a 64 bit integer. However, earlier versions set the type of implicit primary keys to be integers.

I notice that on django 3.2 I got these migrations added in my project when I run `makemigrations. I didn't want to set the default auto field back to AutoField like suggested in the docs, so I fork this project and add the migration

Another way is to override the appsconfig in your project as explained here

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

No branches or pull requests

1 participant