Override Config of Django app, extra django-cms migration is created
Sometimes you need to override Config
for various reasons.
For example, in my case, after updating django 3.2+, a migration for django-cms was automatically created when you call makemigrations for your project.
It was in this error that this behavior arose due to the introduction of default_auto_field
(see: DEFAULT_AUTO_FIELD
to a value other than django.db.models.AutoField
, namely django.db.models.BigAutoField
. Therefore, when calling makemigrations
, a migration was created in which the type of the ID
field became BigAutoField
for all django-cms models.
To fix the error above, you need to override CMSConfig
in any of your...