diff --git a/make_a_wish/models.py b/make_a_wish/models.py index a51b6209ad5a19eb6f7d61c52753251f02ca17da..49cd04d957289753c7f465ac36bfa103f0253d64 100644 --- a/make_a_wish/models.py +++ b/make_a_wish/models.py @@ -103,6 +103,10 @@ class MakeAWishRoot( ] ) + @property + def root_page(self): + return self + def process_form_submission(self, form): # Custom code on form submission cleaned_data = form.cleaned_data diff --git a/make_a_wish/templates/make_a_wish/make_a_wish_root.html b/make_a_wish/templates/make_a_wish/make_a_wish_root.html index 01304d823453aa39e3b9a55f5724cbba86a71dd7..607c3af2d907db2bba7628a03297bf08f4ca9c1f 100644 --- a/make_a_wish/templates/make_a_wish/make_a_wish_root.html +++ b/make_a_wish/templates/make_a_wish/make_a_wish_root.html @@ -4,10 +4,6 @@ {% block head_start %} {% comment %}quick dirty fix{% endcomment %} <title>Máte přání?</title> - - {% if page.matomo_id %} - {% include "shared/matomo_snippet.html" with matomo_id=page.matomo_id %} - {% endif %} {% endblock %} {% block content %}