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('+', '')