Skip to content

Commit

Permalink
Fix admin ChangeList.__init__ (#1801)
Browse files Browse the repository at this point in the history
The new parameter search_help_text was added with Django 4:
django/django@1143f3b
  • Loading branch information
quinox authored Oct 26, 2023
1 parent 25e23fa commit 65d6430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions django-stubs/contrib/admin/views/main.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class ChangeList:
list_filter: Sequence[_ListFilterT]
date_hierarchy: Any
search_fields: Sequence[str]
search_help_text: str | None
list_select_related: bool | Sequence[str]
list_per_page: int
list_max_show_all: int
Expand Down Expand Up @@ -59,6 +60,7 @@ class ChangeList:
list_editable: Sequence[str],
model_admin: ModelAdmin,
sortable_by: Sequence[str] | None,
search_help_text: str | None,
) -> None: ...
def get_filters_params(self, params: dict[str, Any] | None = ...) -> dict[str, Any]: ...
def get_filters(self, request: HttpRequest) -> tuple[list[ListFilter], bool, dict[str, bool | str], bool, bool]: ...
Expand Down
1 change: 0 additions & 1 deletion scripts/stubtest/allowlist_todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ django.contrib.admin.utils.prepare_lookup_value
django.contrib.admin.views.autocomplete.AutocompleteJsonView.admin_site
django.contrib.admin.views.autocomplete.AutocompleteJsonView.process_request
django.contrib.admin.views.autocomplete.AutocompleteJsonView.serialize_result
django.contrib.admin.views.main.ChangeList.__init__
django.contrib.admin.views.main.ChangeList.search_form_class
django.contrib.admin.views.main.ChangeListSearchForm
django.contrib.admin.widgets.AutocompleteMixin.media
Expand Down

0 comments on commit 65d6430

Please sign in to comment.