Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Warning (models.W042) when starting #476

Open
RodneyRichardson opened this issue May 23, 2022 · 1 comment
Open

Warning (models.W042) when starting #476

RodneyRichardson opened this issue May 23, 2022 · 1 comment

Comments

@RodneyRichardson
Copy link

I get the following warnings when starting a django 4 application using django-microsoft-auth v2.4.1

microsoft_auth.MicrosoftAccount: (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 MicrosoftAuthConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
microsoft_auth.XboxLiveAccount: (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 MicrosoftAuthConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
@JupiterThreads
Copy link

This is because of the new auto field in django, I think 3.2. I've just forked it and set it to auto field.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants