kopia lustrzana https://github.com/wagtail/wagtail
Include ordering in BaseListingView context
rodzic
f155546f65
commit
ff0cd42a6c
|
@ -537,6 +537,7 @@ class BaseListingView(WagtailAdminTemplateMixin, BaseListView):
|
||||||
context["index_url"] = self.index_url
|
context["index_url"] = self.index_url
|
||||||
context["index_results_url"] = self.index_results_url
|
context["index_results_url"] = self.index_results_url
|
||||||
context["verbose_name_plural"] = self.verbose_name_plural
|
context["verbose_name_plural"] = self.verbose_name_plural
|
||||||
|
context["ordering"] = self.ordering
|
||||||
context["table"] = table
|
context["table"] = table
|
||||||
context["media"] = table.media
|
context["media"] = table.media
|
||||||
# On Django's BaseListView, a listing where pagination is applied, but the results
|
# On Django's BaseListView, a listing where pagination is applied, but the results
|
||||||
|
|
|
@ -297,7 +297,6 @@ class IndexView(generic.IndexView):
|
||||||
|
|
||||||
context.update(
|
context.update(
|
||||||
{
|
{
|
||||||
"ordering": self.ordering,
|
|
||||||
"search_form": self.search_form,
|
"search_form": self.search_form,
|
||||||
"is_searching": self.is_searching,
|
"is_searching": self.is_searching,
|
||||||
}
|
}
|
||||||
|
|
|
@ -175,7 +175,6 @@ class SearchView(PermissionCheckedMixin, BaseListingView):
|
||||||
"all_pages": self.all_pages,
|
"all_pages": self.all_pages,
|
||||||
"content_types": self.content_types,
|
"content_types": self.content_types,
|
||||||
"selected_content_type": self.selected_content_type,
|
"selected_content_type": self.selected_content_type,
|
||||||
"ordering": self.ordering,
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return context
|
return context
|
||||||
|
|
Ładowanie…
Reference in New Issue