From f666cfcb15acbf980dc2a07521eda4265223938d Mon Sep 17 00:00:00 2001 From: Holger Trampe Date: Tue, 10 Dec 2019 22:14:31 +0100 Subject: [PATCH] =?UTF-8?q?Support=208=20Standards=20l=C3=B6schbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../standards/standards_management.html | 12 +++++++++++- users/__pycache__/views.cpython-38.pyc | Bin 12475 -> 12534 bytes users/views.py | 10 ++++++---- 3 files changed, 17 insertions(+), 5 deletions(-) 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 57166c887e34f07a77059f0c112aa0263bf5daf4..90bd6705bdd9dec26cfc7cb5ad23363be3783348 100644 GIT binary patch delta 272 zcmdm;_$`qyl$V!_0SH!ceTWUP-pIF2OYRepo5EPaP{WYL*vy#1G>55{5y)mrVa{eM zdNlcwR!dkGX9|A}cMV61KreGGPYq9sU^a8np%ShI+%*g-LJOG~8S+G+JmC`78lGlG zaR!iR2@g9;s^o%83kvd!N)q$Z ziW1XP71B~Oa?(?alQVLFygbD!6*PIETxwoQYKfjgNM>?&YKg9=%jB~<28_Iu|LJH? l*3<1`G?~0pSBH&BfRTfdZ}Ustw~TCufff}VoP055{5y)mrVa{eM zx-$8ZR*OdscQYd+LkVXVR|4P24m*rP@P=KD#_r|f`a^_lEl2UqQvx6g`m{pg1r3V z)XChs28?`@ZFIF+i#7nAHaT6li_vKECtV#DMh-@S%_@3t8QBg2C5jGA7B{#L02FmR Al>h($ 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: