From 437aa37faee8b94b5afae7a8a32f57ed882d56c1 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 5 Feb 2024 11:46:09 -0500 Subject: [PATCH 1/2] [5.0] add `assume_scheme` to forms.URLField --- django-stubs/forms/fields.pyi | 1 + 1 file changed, 1 insertion(+) 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: ... From b6f2a31fdaccfbde277ac9bb167950222e726759 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 8 Feb 2024 14:52:05 -0500 Subject: [PATCH 2/2] Update allowlist_todo_django50.txt --- scripts/stubtest/allowlist_todo_django50.txt | 3 --- 1 file changed, 3 deletions(-) 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