DEFAULT_AUTO_FIELD added to suppress warning from django 3.2

Benni Bärmann 2 years ago
parent 94164c3d6a
commit 586a30d8e9

@ -21,7 +21,3 @@ other known problems:
- we should add dates to the outputs, to make it more useful in logfiles
- maybe change logo in browser dark mode to
- warning from django 3.2:
input.BusinessCard: (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 InputConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.

@ -146,3 +146,6 @@ USE_TZ = True
STATIC_URL = '/static/'
# needed since django 3.2
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'