diff --git a/standards/templates/standards/standards_management.html b/standards/templates/standards/standards_management.html index f0e1ce0..737002f 100644 --- a/standards/templates/standards/standards_management.html +++ b/standards/templates/standards/standards_management.html @@ -70,7 +70,17 @@ {{standard.last_modified_by.first_name}} {{standard.last_modified_by.last_name}} {{standard.last_modified_on|date:"d.m.Y, H:i"}} {{standard.public|yesno:"Öffentlich,Nicht öffentlich"}} - + + + {% endfor %} diff --git a/users/__pycache__/views.cpython-38.pyc b/users/__pycache__/views.cpython-38.pyc index 57166c8..90bd670 100644 Binary files a/users/__pycache__/views.cpython-38.pyc and b/users/__pycache__/views.cpython-38.pyc differ diff --git a/users/views.py b/users/views.py index b4bbf58..f51c881 100644 --- a/users/views.py +++ b/users/views.py @@ -418,7 +418,7 @@ def support(request): ostdata = { - "topicid" : '12', + "topicId" : '12', "name": name, "email": mail, "subject": 'Digitale Agentur: '+problemconc, @@ -427,10 +427,12 @@ def support(request): } json_data = json.dumps(ostdata) - print(json_data) - r = requests.post("https://support.vh-solutions.de/api/http.php/tickets.json", data=json_data, headers=headers) - messages.warning(request, f'Supportanfrage Respnose: ' + str(r)) + r = requests.post("https://support.vh-solutions.de/api/http.php/tickets.json", data=json_data, headers=headers) + if(r != 201): + messages.warning(request, f'Supportanfrage fehlgeschlagen!') + else: + messages.warning(request, f'Supportanfrage gesendet. Ticket-ID: ' + str(r)) return render(request, 'users/support_done.html', context) else: