X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/61a7821596218f11028b5fbe6e5f4757e74e903b..c2de733944de9c66c25f61fafa9e295d2c29f32c:/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)