Skip to content
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

Add new setting DEFAULT_AUTO_FIELD #1086

Merged
merged 1 commit into from
May 7, 2022
Merged

Conversation

tkdchen
Copy link
Member

@tkdchen tkdchen commented May 7, 2022

This is introduced in Django 3.2 and is required in settings or warnings
will be printed as:

testruns.TestRunTag: (models.W042) Auto-created primary key used when
not defining a primary key type, by default
'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the
AppConfig.default_auto_field attribute to point to a subclass of
AutoField, e.g. 'django.db.models.BigAutoField'.

The BugAutoField will be applied to a new generated database. By a quick
testing, no need to update the existing database, no migration there.
Hopefully, everything works well as normal with this change.

Signed-off-by: Chenxiong Qi qcxhome@gmail.com

This is introduced in Django 3.2 and is required in settings or warnings
will be printed as:

testruns.TestRunTag: (models.W042) Auto-created primary key used when
not defining a primary key type, by default
'django.db.models.AutoField'.
    HINT: Configure the DEFAULT_AUTO_FIELD setting or the
    AppConfig.default_auto_field attribute to point to a subclass of
    AutoField, e.g. 'django.db.models.BigAutoField'.

The BugAutoField will be applied to a new generated database. By a quick
testing, no need to update the existing database, no migration there.
Hopefully, everything works well as normal with this change.

Signed-off-by: Chenxiong Qi <qcxhome@gmail.com>
@tkdchen tkdchen added this to In progress in 4.13 via automation May 7, 2022
@coveralls
Copy link

Coverage Status

Coverage remained the same at 83.088% when pulling ac4f9ca on tkdchen:add-new-setting into 1be8357 on Nitrate:develop.

@tkdchen tkdchen merged commit 54f2625 into Nitrate:develop May 7, 2022
4.13 automation moved this from In progress to Done May 7, 2022
@tkdchen tkdchen deleted the add-new-setting branch May 7, 2022 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
4.13
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants