AngellusMortis / django_microsoft_auth

Simple app to enable Microsoft Account, Office 365 and Xbox Live authentcation as a Django authentcation backend.
MIT License
137 stars 84 forks source link

Warning (models.W042) when starting #476

Open RodneyRichardson opened 2 years ago

RodneyRichardson commented 2 years ago

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 commented 1 year ago

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.