|
@@ -12,3 +12,12 @@ def get_dashboard(context, location):
|
|
|
app_label = context['request'].resolver_match.kwargs.get('app_label')
|
|
|
|
|
|
return dashboard_cls(context, app_label=app_label)
|
|
|
+
|
|
|
+
|
|
|
+@register.filter
|
|
|
+def format_change_message(log_entry):
|
|
|
+ # Django 1.10+
|
|
|
+ if hasattr(log_entry, 'get_change_message'):
|
|
|
+ return log_entry.get_change_message()
|
|
|
+ else:
|
|
|
+ return log_entry.change_message
|