furious-luke / django-address

A Django address model and field. Addresses may be specified by address components or by performing an automatic Google Maps lookup.
BSD 3-Clause "New" or "Revised" License
431 stars 181 forks source link

default Autofield and django 3.2 #159

Open karimone opened 2 years ago

karimone commented 2 years ago

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