From 6631555d78099f85737a1174ecb642451db1a2a7 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 8 Feb 2024 15:34:06 -0500 Subject: [PATCH] [5.0] add `assume_scheme` to forms.URLField (#1929) * [5.0] add `assume_scheme` to forms.URLField * Update allowlist_todo_django50.txt --- django-stubs/forms/fields.pyi | 1 + scripts/stubtest/allowlist_todo_django50.txt | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/django-stubs/forms/fields.pyi b/django-stubs/forms/fields.pyi index ef0e7d830..df9b6893f 100644 --- a/django-stubs/forms/fields.pyi +++ b/django-stubs/forms/fields.pyi @@ -307,6 +307,7 @@ class URLField(CharField): localize: bool = ..., disabled: bool = ..., label_suffix: str | None = ..., + assume_scheme: str | None = ..., ) -> None: ... def to_python(self, value: Any | None) -> str | None: ... diff --git a/scripts/stubtest/allowlist_todo_django50.txt b/scripts/stubtest/allowlist_todo_django50.txt index da17fabd3..5410561ae 100644 --- a/scripts/stubtest/allowlist_todo_django50.txt +++ b/scripts/stubtest/allowlist_todo_django50.txt @@ -85,7 +85,6 @@ django.contrib.gis.forms.BoundField.get_context django.contrib.gis.forms.BoundField.template_name django.contrib.gis.forms.ClearableFileInput.checked django.contrib.gis.forms.Field.__init__ -django.contrib.gis.forms.URLField.__init__ django.contrib.gis.forms.fields_for_model django.contrib.gis.geos.geometry.GEOSGeometryBase.equals_identical django.contrib.gis.geos.prototypes.io.DEFAULT_TRIM_VALUE @@ -255,12 +254,10 @@ django.forms.BoundField.get_context django.forms.BoundField.template_name django.forms.ClearableFileInput.checked django.forms.Field.__init__ -django.forms.URLField.__init__ django.forms.boundfield.BoundField.get_context django.forms.boundfield.BoundField.template_name django.forms.fields.CallableChoiceIterator django.forms.fields.Field.__init__ -django.forms.fields.URLField.__init__ django.forms.fields_for_model django.forms.forms.BaseForm._html_output django.forms.models.BaseModelFormSet.save_existing