django-trench icon indicating copy to clipboard operation
django-trench copied to clipboard

trench.MFAMethod warning

Open maxim25 opened this issue 3 years ago • 0 comments

I get the following warning when running it with Django==4.1.4

WARNINGS: trench.MFAMethod: (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 TrenchConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.

To Reproduce Install as you normally would with Django==4.1.4

A simple fix would be adding the following to AppConfig default_auto_field = 'django.db.models.BigAutoField'

maxim25 avatar Jan 12 '23 22:01 maxim25