Skip to content

Commit

Permalink
Set auto redirect creation feature via env var
Browse files Browse the repository at this point in the history
  • Loading branch information
istride committed Mar 25, 2024
1 parent d5589e5 commit 7d6b94d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iogt/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,5 +570,6 @@

# Default primary key field type introduced in Django 3.2 or later versions
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

WAGTAILREDIRECTS_AUTO_CREATE = os.getenv('WAGTAILREDIRECTS_AUTO_CREATE', 'enable') == 'enable'

0 comments on commit 7d6b94d

Please sign in to comment.