X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/61a7821596218f11028b5fbe6e5f4757e74e903b..6c7d6a5cf471f39a5e8f8e4f42fb428fb4c42e4e:/apps/wiki/views.py?ds=inline diff --git a/apps/wiki/views.py b/apps/wiki/views.py index 46da212a..f9594261 100644 --- a/apps/wiki/views.py +++ b/apps/wiki/views.py @@ -278,6 +278,9 @@ def history(request, chunk_id): "date": localize(change.created_at), "publishable": _("Publishable") + "\n" if change.publishable else "", "tag": ',\n'.join(unicode(tag) for tag in change.tags.all()), + "published": _("Published") + ": " + \ + localize(change.publish_log.order_by('-book_record__timestamp')[0].book_record.timestamp) \ + if change.publish_log.exists() else "", }) return JSONResponse(changes)