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