You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yesterday, I upgraded to the freshly released 5.0.0 version of this package. However, Django now warns me that the models in djangocms_snippet have changes that are not reflected in a migration.
When I let Django create a migration, this is what it contains:
Looking into the migration history, it seems that djangocms_snippet uses a BigAutoField for snippetgrouper.id (as can be seen in migration 0014) and for snippet.id (as can been in migration 0010). Django's default, however, is AutoField.
The reason I'm creating an issue and not a PR (which I'm still willing to do) is that I see "DEFAULT_AUTO_FIELD": "django.db.models.AutoField", in HELPER_SETTINGS in settings.py, but I don't know how that is supposed to work. But at least it seems someone tried to set Autofield as the default …
Should I simply create a PR to configure the autofield on the AppConfig or must this be solved some other way?
Yesterday, I upgraded to the freshly released 5.0.0 version of this package. However, Django now warns me that the models in
djangocms_snippet
have changes that are not reflected in a migration.When I let Django create a migration, this is what it contains:
Looking into the migration history, it seems that
djangocms_snippet
uses aBigAutoField
forsnippetgrouper.id
(as can be seen in migration 0014) and forsnippet.id
(as can been in migration 0010). Django's default, however, isAutoField
.According to Django's documentation, apps should configure their auto field type in the AppConfig.
The reason I'm creating an issue and not a PR (which I'm still willing to do) is that I see
"DEFAULT_AUTO_FIELD": "django.db.models.AutoField",
inHELPER_SETTINGS
insettings.py
, but I don't know how that is supposed to work. But at least it seems someone tried to setAutofield
as the default …Should I simply create a PR to configure the autofield on the
AppConfig
or must this be solved some other way?My relevant package versions:
The text was updated successfully, but these errors were encountered: