X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/61a7821596218f11028b5fbe6e5f4757e74e903b..ec6680ed1179840f341ae507ba78320cd23a838e:/apps/wiki/views.py 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)