radiac/django-tagulous

Django 3.2: "Auto-created primary key" warning

jedie opened this issue · 0 comments

jedie commented

e.g.:

WARNINGS:
inventory.Tagulous_BaseItemAttachmentModel_tags: (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 InventoryConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
inventory.Tagulous_BaseLink_tags: (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 InventoryConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
  • Django Version: v3.2.8
  • Python Version: v3.8.10
  • django-tagulous v1.3.0