Include ordering in BaseListingView context

pull/12236/head
Sage Abdullah 2024-08-16 11:32:13 +01:00
rodzic f155546f65
commit ff0cd42a6c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
3 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -537,6 +537,7 @@ class BaseListingView(WagtailAdminTemplateMixin, BaseListView):
context["index_url"] = self.index_url
context["index_results_url"] = self.index_results_url
context["verbose_name_plural"] = self.verbose_name_plural
context["ordering"] = self.ordering
context["table"] = table
context["media"] = table.media
# On Django's BaseListView, a listing where pagination is applied, but the results

Wyświetl plik

@ -297,7 +297,6 @@ class IndexView(generic.IndexView):
context.update(
{
"ordering": self.ordering,
"search_form": self.search_form,
"is_searching": self.is_searching,
}

Wyświetl plik

@ -175,7 +175,6 @@ class SearchView(PermissionCheckedMixin, BaseListingView):
"all_pages": self.all_pages,
"content_types": self.content_types,
"selected_content_type": self.selected_content_type,
"ordering": self.ordering,
}
)
return context