Pick up show_locale_labels from the calling template

pull/8650/head
Matt Westcott 2022-06-08 14:37:17 +01:00 zatwierdzone przez Matt Westcott
rodzic 2ecb365da8
commit c8c07839a0
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -108,6 +108,11 @@ class PageChooserTable(Table):
return " ".join(classnames)
def get_context_data(self, parent_context):
context = super().get_context_data(parent_context)
context["show_locale_labels"] = parent_context.get("show_locale_labels", False)
return context
class PageTitleColumn(Column):
cell_template_name = "wagtailadmin/chooser/tables/page_title_cell.html"