Skip to content

Commit

Permalink
Explicitly set DEFAULT_AUTO_FIELD
Browse files Browse the repository at this point in the history
  • Loading branch information
XanderVertegaal committed Nov 22, 2024
1 parent 264b4ea commit 9fa3dcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/lettercraft/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@
"USER_DETAILS_SERIALIZER": "user.serializers.CustomUserDetailsSerializer",
}

# Explicitly sets the auto field to the Django 3.2+ default,
# cf. https://docs.djangoproject.com/en/4.2/releases/3.2/#customizing-type-of-auto-created-primary-keys
# Silences warnings from django-allauth.
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

# Internationalization
# https://docs.djangoproject.com/en/3.0/topics/i18n/
Expand Down

0 comments on commit 9fa3dcd

Please sign in to comment.