Prevent some pages from search indexing

This commit is contained in:
Raphael Michel
2017-09-25 10:04:37 +02:00
parent ef3eee7873
commit 43fc498297
6 changed files with 36 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ from pretix.multidomain.urlreverse import eventreverse
from pretix.presale.views import EventViewMixin
from pretix.presale.views.async import AsyncAction
from pretix.presale.views.event import item_group_by_category
from pretix.presale.views.robots import NoSearchIndexViewMixin
class CartActionMixin:
@@ -177,7 +178,7 @@ class CartAdd(EventViewMixin, CartActionMixin, AsyncAction, View):
return redirect(self.get_error_url())
class RedeemView(EventViewMixin, TemplateView):
class RedeemView(NoSearchIndexViewMixin, EventViewMixin, TemplateView):
template_name = "pretixpresale/event/voucher.html"
def get_context_data(self, **kwargs):