瀏覽代碼

displays the right date/hour of modification

Alexis CLEMENT 8 年之前
父節點
當前提交
edf4f95de3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tracim/tracim/model/serializers.py

+ 2 - 2
tracim/tracim/model/serializers.py 查看文件

@@ -388,7 +388,7 @@ def serialize_node_for_page(content: Content, context: Context):
388 388
             is_new=content.has_new_information_for(context.get_user()),
389 389
             content=data_container.description,
390 390
             created=data_container.created,
391
-            updated=data_container.updated,
391
+            updated=content.last_revision.updated,
392 392
             label=data_container.label,
393 393
             icon=ContentType.get_icon(content.type),
394 394
             owner=context.toDict(content.first_revision.owner),
@@ -457,7 +457,7 @@ def serialize_node_for_thread(item: Content, context: Context):
457 457
         return DictLikeClass(
458 458
             content = item.description,
459 459
             created = item.created,
460
-            updated = item.updated,
460
+            updated = item.last_revision.updated,
461 461
             revision_nb = len(item.revisions),
462 462
             icon = ContentType.get_icon(item.type),
463 463
             id = item.content_id,