-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: Add default_auto_field
to cms/apps.py
#8254
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
Conversation
Reviewer's GuideExplicitly set the default_auto_field attribute on the CMS AppConfig to 'django.db.models.AutoField', ensuring model primary keys use the intended field type by default. Updated Class Diagram for CMSConfigclassDiagram
class CMSConfig {
+name: str
+verbose_name: str
+default_auto_field: str
+ready()
}
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
👋 Hi there! Please remember to MERGE COMMIT pull requests from Do not SQUASH commits to preserve history for the changelog. |
👋 Hi there! Please remember to MERGE COMMIT pull requests from Do not SQUASH commits to preserve history for the changelog. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah should be that easy.
* fix: Add `default_auto_field` to cms/apps.py * Add default_autofield to `menus.apss`
* fix: Add `default_auto_field` to cms/apps.py * Add default_autofield to `menus.apss`
Description
Adds the
default_auto_field
property tocms.apps
and menus.apps`.Fixes #8253 - no more migrations created when project
DEFAULT_AUTO_FIELD
is not set toAutoField
.Related resources
Checklist
main
Summary by Sourcery
Enhancements: