Skip to content

Commit

Permalink
Allow for big integer primary key fields
Browse files Browse the repository at this point in the history
  • Loading branch information
profcturner committed Nov 29, 2021
1 parent 4c5b89b commit ce27ed7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion WAM/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,7 @@
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'

LOGOUT_REDIRECT_URL = 'logged out'
LOGOUT_REDIRECT_URL = 'logged out'

# New in Django 3.2, we should set an explicit automatic primary key type
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

0 comments on commit ce27ed7

Please sign in to comment.