Skip to content

Commit 6bc1b49

Browse files
benmezgerjelly
authored andcommitted
Fix Django schema deprecation
1 parent 0cf2405 commit 6bc1b49

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

settings.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,4 +272,10 @@
272272

273273
INSTALLED_APPS = [*list(INSTALLED_APPS), 'django_prometheus']
274274

275+
# Assume all URLField will be HTTPS if not specified.
276+
# NOTE: this can be removed once we bump Django to 6.x
277+
# where `https` becomes the default.
278+
FORMS_URLFIELD_ASSUME_HTTPS = True
279+
280+
275281
# vim: set ts=4 sw=4 et:

0 commit comments

Comments
 (0)