From fb3fb799af90955debb4c9de935a60dd3e22ba2e Mon Sep 17 00:00:00 2001 From: Dmitry Novikov Date: Sat, 15 Jul 2017 10:25:01 +0300 Subject: [PATCH] =?UTF-8?q?FIXBUG:=20=D0=B2=D1=8B=D0=BB=D0=B5=D1=82=D0=B0?= =?UTF-8?q?=D0=BB=D0=BE=20=D0=BA=D0=BE=D0=B3=D0=B4=D0=B0=20=D0=BF=D1=8B?= =?UTF-8?q?=D1=82=D0=B0=D0=B5=D0=BC=D1=81=D1=8F=20=D0=B8=D1=81=D0=BA=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B8=20=D0=BD=D0=B5=20=D0=B0=D0=B2=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- searchapp/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/searchapp/views.py b/searchapp/views.py index e9155fe..4e5a8d4 100644 --- a/searchapp/views.py +++ b/searchapp/views.py @@ -4,12 +4,14 @@ from django.shortcuts import render from django.utils.html import escape from abonapp.models import Abon from mydefs import ip_addr_regex +from django.contrib.auth.decorators import login_required def replace_without_case(orig, old, new): return re.sub(old, new, orig, flags=re.IGNORECASE) +@login_required def home(request): s = request.GET.get('s') s = s.replace('+', '')