You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Application django-flatblocks displays this warning when used in Django 3.2:
WARNINGS:
flatblocks.FlatBlock: (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 AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
To solve this issue, there should be a apps.py file with the following content:
from django.apps import AppConfig
class FlatblocksConfig(AppConfig):
default_auto_field = 'django.db.models.AutoField'
Application
django-flatblocks
displays this warning when used inDjango 3.2
:To solve this issue, there should be a
apps.py
file with the following content:More information here and here.
The text was updated successfully, but these errors were encountered: