From 46283ee2e20760c795334183d3e740d0ec127d1a Mon Sep 17 00:00:00 2001 From: "holger.trampe" Date: Mon, 16 Dec 2019 13:47:45 +0100 Subject: [PATCH] document ready umgangen --- users/__pycache__/views.cpython-38.pyc | Bin 14965 -> 14950 bytes users/templates/users/base.html | 16 +--------------- users/templates/users/searchres.html | 2 +- users/views.py | 1 - 4 files changed, 2 insertions(+), 17 deletions(-) diff --git a/users/__pycache__/views.cpython-38.pyc b/users/__pycache__/views.cpython-38.pyc index 23973ea0191e49d3ae4ac92a8a6d3b5f99c885d8..cea66767e5dc1ca5a670f17eba981c497475f38e 100644 GIT binary patch delta 525 zcmZ8dOG^S#6rOXPm*Y%j`AFNf$x>2?NrZw(f+SkFa1*qsrih6s#;Mf|A+81CF6%c$ zG7AY>D7n)fM2lz_NLyDCw21CC4e7%9_|Es8$K`yO@1~Md6p0~k+xpy;D@tc7E0Rng zktUH}1%|O0ozdU`mBCmb95fVSY#fg4QQdZ#?%pm>3HqCC)|7r#{1zF@A+7IqH`$!&>GjCH9)!(bCmqufG@Q%XGvIHDVKneuVjZfukT`^< z(@Bi7{yVDQQ+S~8OyLm+)ETZt=oem57op`8RTba~U(cUF9LJLr(0106@4&y(@)w*; do%?H))+sb8&~BrRuf~J;J9R8fioBQ>)gKZEgPQ;V delta 546 zcmZWlJ4gdT6uh^&UoJU+n8aubLBXg&f_Mpnf+&K5DQyG`@#5!Hl+6a4J5pE&0$VEB zTd7xQVWXJN_(3ex#wICjti-~`-H=GoEr!{dw{MoIkWZq|>$)beGrRk>7&*~D`sjO) zJ~Ib`U<;OD!Uie;o?skI6c!v<7aYWH$nsdCB{?1Q48cL8lidS#1m6OnM0~udQt37X_y?*-et6`rt$) z$V&x3Xdp5yKoDXO3$%lZ@FiUxyl6dT6=&q?lm diff --git a/users/templates/users/searchres.html b/users/templates/users/searchres.html index e03c17f..563aebc 100644 --- a/users/templates/users/searchres.html +++ b/users/templates/users/searchres.html @@ -39,4 +39,4 @@ {% else %}

Keine Ergebnisse in Personen

{% endif %} - + \ No newline at end of file diff --git a/users/views.py b/users/views.py index 895cd60..d2001ff 100644 --- a/users/views.py +++ b/users/views.py @@ -399,7 +399,6 @@ def cleanhtml(raw_html): def GlobalSearch(request): if request.method == 'GET': searchfor = request.GET['searchstring'] - results = {} ag = request.user.profile.agency.pk res_standard = Standards.objects.filter(agency__pk=ag, public=True).filter(name__icontains=searchfor) | Standards.objects.filter(agency__pk=ag, public=True).filter(content__contains=searchfor) | Standards.objects.filter(agency__pk=ag, public=True).filter(area__name__icontains=searchfor) | Standards.objects.filter(agency__pk=ag, public=True).filter(task__name__icontains=searchfor) | Standards.objects.filter(agency__pk=ag, public=True).filter(created_standard_by__last_name__icontains=searchfor)|Standards.objects.filter(agency__pk=ag, public=True).filter(created_standard_by__first_name__icontains=searchfor) res_areas = Areas.objects.filter(agency__pk=ag).filter(name__icontains=searchfor)