Prevent site history report from globally altering custom_field_preprocess on ReportView

pull/7638/head
Matt Westcott 2021-11-17 15:18:36 +00:00
rodzic 846de02e56
commit 3efcecf536
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -95,6 +95,7 @@ class LogEntriesView(ReportView):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.custom_field_preprocess = self.custom_field_preprocess.copy()
self.custom_field_preprocess['action'] = {
self.FORMAT_CSV: self.get_action_label,
self.FORMAT_XLSX: self.get_action_label