Skip to content

Commit

Permalink
5.0: Update django.forms.widgets (#2147)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeHyuckSa authored May 12, 2024
1 parent 85afae7 commit 6da49a7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
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 @@ -1309,7 +1308,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 @@ -1366,7 +1364,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

0 comments on commit 6da49a7

Please sign in to comment.