From c5f8ab6cd38537fd71942d6e5137a47f709cfa0a Mon Sep 17 00:00:00 2001 From: fefa4ka Date: Tue, 21 Jun 2016 01:27:04 +0300 Subject: [PATCH] debug history --- promo/cms_plugins.py | 1 + promo/templates/promo/index.html | 1 + 2 files changed, 2 insertions(+) diff --git a/promo/cms_plugins.py b/promo/cms_plugins.py index 559b713..5a78893 100644 --- a/promo/cms_plugins.py +++ b/promo/cms_plugins.py @@ -23,6 +23,7 @@ class PromoPluginPublisher(CMSPluginBase): promo.text = promo.text.replace('#promo', promo.page_link.get_absolute_url()) context.update({ 'instance': promo, + 'history': history }) return context diff --git a/promo/templates/promo/index.html b/promo/templates/promo/index.html index 5b9066a..75c38c4 100644 --- a/promo/templates/promo/index.html +++ b/promo/templates/promo/index.html @@ -4,5 +4,6 @@ {% block promo_content %} {% if instance %} {{ instance.text }} + {{ history }} {% endif %} {% endblock %} \ No newline at end of file