Skip to content

Commit 9d21196

Browse files
chore: Add DEFAULT_AUTO_FIELD to settings.py
1 parent 4cfe1c1 commit 9d21196

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

ietf/settings.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import warnings
1313
from typing import Any, Dict, List, Tuple # pyflakes:ignore
1414

15+
import django.db.models
16+
1517
warnings.simplefilter("always", DeprecationWarning)
1618
warnings.filterwarnings("ignore", message="'urllib3\\[secure\\]' extra is deprecated")
1719
warnings.filterwarnings("ignore", message="The logout\\(\\) view is superseded by")
@@ -102,6 +104,11 @@
102104

103105
USE_TZ = True
104106

107+
# Default primary key field type to use for models that don’t have a field with primary_key=True.
108+
# In the future (relative to 4.2), the default will become 'django.db.models.BigAutoField.'
109+
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
110+
111+
105112
if SERVER_MODE == 'production':
106113
MEDIA_ROOT = '/a/www/www6s/lib/dt/media/'
107114
MEDIA_URL = 'https://www.ietf.org/lib/dt/media/'

0 commit comments

Comments
 (0)