Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0: Update django.forms.widgets #2147

Merged
merged 1 commit into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions django-stubs/forms/widgets.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class MultipleHiddenInput(HiddenInput):
template_name: str

class FileInput(Input):
allow_multiple_selected: bool
input_type: str
template_name: str
needs_multipart_form: bool
Expand All @@ -108,6 +109,7 @@ class ClearableFileInput(FileInput):
initial_text: str
input_text: str
template_name: str
checked: bool
def clear_checkbox_name(self, name: str) -> str: ...
def clear_checkbox_id(self, name: str) -> str: ...
def is_initial(self, value: File | str | None) -> bool: ...
Expand Down
3 changes: 0 additions & 3 deletions scripts/stubtest/allowlist_todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ django.contrib.gis.forms.EmailInput.__slotnames__
django.contrib.gis.forms.Field.__deepcopy__
django.contrib.gis.forms.Field.hidden_widget
django.contrib.gis.forms.FileField.bound_data
django.contrib.gis.forms.FileInput.allow_multiple_selected
django.contrib.gis.forms.HiddenInput.__slotnames__
django.contrib.gis.forms.InlineForeignKeyField
django.contrib.gis.forms.Input
Expand Down Expand Up @@ -1316,7 +1315,6 @@ django.forms.EmailInput.__slotnames__
django.forms.Field.__deepcopy__
django.forms.Field.hidden_widget
django.forms.FileField.bound_data
django.forms.FileInput.allow_multiple_selected
django.forms.HiddenInput.__slotnames__
django.forms.InlineForeignKeyField
django.forms.Input
Expand Down Expand Up @@ -1373,7 +1371,6 @@ django.forms.renderers.DjangoDivFormRenderer
django.forms.widgets.ChoiceWidget.subwidgets
django.forms.widgets.ChoiceWidget.template_name
django.forms.widgets.EmailInput.__slotnames__
django.forms.widgets.FileInput.allow_multiple_selected
django.forms.widgets.HiddenInput.__slotnames__
django.forms.widgets.Input.input_type
django.forms.widgets.Media.__html__
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 @@ -18,7 +18,6 @@ django.contrib.gis.db.models.Lookup.allowed_default
django.contrib.gis.db.models.Prefetch.get_current_querysets
django.contrib.gis.db.models.Q.identity
django.contrib.gis.db.models.When.allowed_default
django.contrib.gis.forms.ClearableFileInput.checked
django.contrib.gis.geos.prototypes.io.DEFAULT_TRIM_VALUE
django.contrib.gis.management
django.contrib.gis.management.commands
Expand Down Expand Up @@ -81,8 +80,6 @@ django.db.models.sql.Query.setup_joins
django.db.models.sql.query.Query.build_filtered_relation_q
django.db.models.sql.query.Query.join
django.db.models.sql.query.Query.setup_joins
django.forms.ClearableFileInput.checked
django.forms.widgets.ClearableFileInput.checked
django.template.autoreload

# Django + Oracle (new errors after 5.0.5 update)
Expand Down
Loading