Skip to content

trench.MFAMethod warning #203

Open
@maxim25

Description

@maxim25

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions