diff --git a/catalog/common/models.py b/catalog/common/models.py
index 16402d5d..1185509a 100644
--- a/catalog/common/models.py
+++ b/catalog/common/models.py
@@ -617,5 +617,4 @@ def item_categories():
_CATEGORY_LIST[c] = [cls]
else:
_CATEGORY_LIST[c].append(cls)
- print(_CATEGORY_LIST)
return _CATEGORY_LIST
diff --git a/catalog/templates/catalog_history.html b/catalog/templates/catalog_history.html
new file mode 100644
index 00000000..4a8a2073
--- /dev/null
+++ b/catalog/templates/catalog_history.html
@@ -0,0 +1,70 @@
+{% load static %}
+{% load i18n %}
+{% load admin_url %}
+{% load mastodon %}
+{% load oauth_token %}
+{% load truncate %}
+
+
+
+
+
+ {{ site_name }} - 编辑历史 {{ item.title }}
+ {% include "common_libs.html" with jquery=0 v2=1 %}
+
+
+
+ {% include "_header.html" %}
+
+
+
{{ item.title }} 编辑历史
+
+
+
+ Field |
+ From |
+ To |
+
+
+
+ {% for log in item.history.all %}
+
+
+ {{ log.actor }} {{ log.get_action_display }} on {{ log.timestamp }}
+ |
+
+ {% for key, value in log.changes_dict.items %}
+
+ {{ key }} |
+ {{ value.0|default:"-" }} |
+ {{ value.1|default:"-" }} |
+
+ {% empty %}
+ No data.
+ {% endfor %}
+ {% empty %}
+ No history for this item has been logged yet.
+ {% endfor %}
+
+
+
+
+
+ {% include "_footer.html" %}
+
+