Add default last updated info to generic EditView's status side panel

pull/10930/head
Sage Abdullah 2023-09-20 11:49:58 +01:00
rodzic 4c78ff8f09
commit 61c5f3e130
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -635,10 +635,14 @@ class EditView(
translations=self.translations,
usage_url=self.get_usage_url(),
history_url=self.get_history_url(),
last_updated_info=self.get_last_updated_info(),
)
]
return MediaContainer(side_panels)
def get_last_updated_info(self):
return log_registry.get_logs_for_instance(self.object).first()
def get_edit_url(self):
if not self.edit_url_name:
raise ImproperlyConfigured(