Skip to content

Commit 8b5596e

Browse files
authored
5.0: Update django.conf (#2008)
1 parent d3630bf commit 8b5596e

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

django-stubs/conf/__init__.pyi

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ ENVIRONMENT_VARIABLE: Literal["DJANGO_SETTINGS_MODULE"]
1010
DEFAULT_STORAGE_ALIAS: Literal["default"]
1111
STATICFILES_STORAGE_ALIAS: Literal["staticfiles"]
1212

13+
# RemovedInDjango60Warning.
14+
FORMS_URLFIELD_ASSUME_HTTPS_DEPRECATED_MSG: str
15+
1316
# required for plugin to be able to distinguish this specific instance of LazySettings from others
1417
@type_check_only
1518
class _DjangoConfLazyObject(LazyObject):

django-stubs/conf/global_settings.pyi

+5-4
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ TEMPLATES: list[dict[str, Any]]
119119
# Default form rendering class.
120120
FORM_RENDERER: str
121121

122+
# RemovedInDjango60Warning: It's a transitional setting helpful in early
123+
# adoption of "https" as the new default value of forms.URLField.assume_scheme.
124+
# Set to True to assume "https" during the Django 5.x release cycle.
125+
FORMS_URLFIELD_ASSUME_HTTPS: bool
126+
122127
# Default email address to use for various automated correspondence from
123128
# the site managers.
124129
DEFAULT_FROM_EMAIL: str
@@ -429,10 +434,6 @@ CSRF_HEADER_NAME: str
429434
CSRF_TRUSTED_ORIGINS: list[str]
430435
CSRF_USE_SESSIONS: bool
431436

432-
# Whether to mask CSRF cookie value. It's a transitional setting helpful in
433-
# migrating multiple instance of the same project to Django 4.1+.
434-
CSRF_COOKIE_MASKED: bool
435-
436437
############
437438
# MESSAGES #
438439
############

scripts/stubtest/allowlist_todo_django50.txt

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# Only discrepancies that appeared after Django 4.2 -> 5.0 update.
33
# Unsorted: there are real problems and things we can really ignore.
44

5-
django.conf.FORMS_URLFIELD_ASSUME_HTTPS_DEPRECATED_MSG
6-
django.conf.global_settings.CSRF_COOKIE_MASKED
7-
django.conf.global_settings.FORMS_URLFIELD_ASSUME_HTTPS
85
django.contrib.admin.AdminSite.get_model_admin
96
django.contrib.admin.AllValuesFieldListFilter.get_facet_counts
107
django.contrib.admin.BooleanFieldListFilter.get_facet_counts

0 commit comments

Comments
 (0)