Please define the `default_auto_field` in your apps.py
Closed this issue · 1 comments
spapas commented
Since djago 3.2 it is required to configure the type of the auto generated id field of your models. Most people will usually just add a global DEFAULT_AUTO_FIELD setting.
This is problematic because for projects that have a DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
a nasty migration will be generated that will convert the django-email-log id to BigAutoField
.
The solution is to just add default_auto_field = "django.db.models.AutoField" in your apps.py. I'll add a quick PR with with that fix exactly.
Thank you
spapas commented
Hello @treyhunner could you plese show some love on this issue? It's just a small one !
Thank you!