Skip to content

Add default_auto_field setting, strongly recommended in Django 3.2 #282

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

Merged
merged 1 commit into from
May 27, 2021

Conversation

jaap3
Copy link
Contributor

@jaap3 jaap3 commented May 27, 2021

Without this Django issues the following warnings when running the tests:

System check identified some issues:

WARNINGS:
testprofiles.RequiredFieldUser: (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'.
testprofiles.StandaloneUserModel: (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'.
testprofiles.TestUser: (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'.

@peppelinux peppelinux merged commit 5974de4 into IdentityPython:master May 27, 2021
@peppelinux
Copy link
Member

for future PR please ask to PR to dev branch ;)

@jaap3
Copy link
Contributor Author

jaap3 commented May 27, 2021

Ah sorry, I didn't realize there was a dev branch

@jaap3 jaap3 deleted the add-default-auto-field branch May 27, 2021 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants