Kaynağa Gözat

displays the right date/hour of modification

Alexis CLEMENT 8 yıl önce
ebeveyn
işleme
edf4f95de3
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      tracim/tracim/model/serializers.py

+ 2 - 2
tracim/tracim/model/serializers.py Dosyayı Görüntüle

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