Skip to content

Commit

Permalink
[5.0] add assume_scheme to forms.URLField (#1929)
Browse files Browse the repository at this point in the history
* [5.0] add `assume_scheme` to forms.URLField

* Update allowlist_todo_django50.txt
  • Loading branch information
asottile authored Feb 8, 2024
1 parent 5d41033 commit 6631555
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions django-stubs/forms/fields.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...

Expand Down
3 changes: 0 additions & 3 deletions scripts/stubtest/allowlist_todo_django50.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6631555

Please sign in to comment.