diff --git a/standards/templates/standards/standards_single.html b/standards/templates/standards/standards_single.html index 91f3cf1..2d7b8c6 100644 --- a/standards/templates/standards/standards_single.html +++ b/standards/templates/standards/standards_single.html @@ -230,11 +230,11 @@ Benutzername: {{pass.agpass_username }}
Passwort: {{pass.agpass_username }}
{% else %} - Sie dürfen keine Informationen dieses Passwords einsehen. + Sie dürfen keine Informationen dieses Passwortes einsehen. {% endif %} diff --git a/standards/templatetags/__pycache__/counter_tag.cpython-38.pyc b/standards/templatetags/__pycache__/counter_tag.cpython-38.pyc index e690486..8e6e9a6 100644 Binary files a/standards/templatetags/__pycache__/counter_tag.cpython-38.pyc and b/standards/templatetags/__pycache__/counter_tag.cpython-38.pyc differ diff --git a/standards/templatetags/counter_tag.py b/standards/templatetags/counter_tag.py index 57ce374..f221c7d 100644 --- a/standards/templatetags/counter_tag.py +++ b/standards/templatetags/counter_tag.py @@ -41,8 +41,7 @@ def has_group(user, group_name): if g.name == group_name: in_group = True return in_group - - + @register.simple_tag def setbool(value): global groupbool diff --git a/standards/views.py b/standards/views.py index 93fde8a..0bb646c 100644 --- a/standards/views.py +++ b/standards/views.py @@ -257,6 +257,10 @@ def StandardAdd(request, id=False): standard.freefield_content = normalForm.cleaned_data['freefield_content'] standard.freefield_title = normalForm.cleaned_data['freefield_title'] + # Clear Users, will set again next step + standard.authority.clear() + standard.executor.clear() + standard.representative.clear() # ADD NEW INFOS # REPRESENTATIV diff --git a/users/templates/users/searchres.html b/users/templates/users/searchres.html index 9d1747c..3376a76 100644 --- a/users/templates/users/searchres.html +++ b/users/templates/users/searchres.html @@ -144,9 +144,9 @@ diff --git a/users/views.py b/users/views.py index 17bb9e9..7e9ccd3 100644 --- a/users/views.py +++ b/users/views.py @@ -645,9 +645,9 @@ def GlobalSearch(request): res_files = DataFile.objects.filter(agency__pk=ag).filter(name__icontains=searchfor) - print(res_files) + - html = render_to_string('users/searchres.html', {'links': links, 'res_standard': res_standard, 'res_areas': res_areas, 'res_tasks': res_tasks, 'res_pers': res_pers, 'res_news' : res_news, 'res_pass' : res_pass, 'res_contacts' : res_contacts, 'res_files' : res_files}) + html = render_to_string('users/searchres.html', {'links': links, 'res_standard': res_standard, 'res_areas': res_areas, 'res_tasks': res_tasks, 'res_pers': res_pers, 'res_news' : res_news, 'res_pass' : res_pass, 'res_contacts' : res_contacts, 'res_files' : res_files, 'user' : request.user}) return HttpResponse(html) else: return HttpResponse("Request method is not a GET")