mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Prevent some pages from search indexing
This commit is contained in:
@@ -5,8 +5,10 @@ from django.http import HttpResponseRedirect
|
||||
from django.utils.http import is_safe_url
|
||||
from django.views.generic import View
|
||||
|
||||
from .robots import NoSearchIndexViewMixin
|
||||
|
||||
class LocaleSet(View):
|
||||
|
||||
class LocaleSet(NoSearchIndexViewMixin, View):
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
url = request.GET.get('next', request.META.get('HTTP_REFERER', '/'))
|
||||
|
||||
Reference in New Issue
Block a user