Skip to content

trench.MFAMethod warning #203

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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