From babc7586cf0fc63e66081d166d6c75bbe7b624ac Mon Sep 17 00:00:00 2001 From: pprolancer Date: Sun, 12 Mar 2017 19:58:57 +0330 Subject: [PATCH] - issue #493: internal error 500 on save query https://github.com/django-helpdesk/django-helpdesk/issues/493 --- helpdesk/views/staff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index 1ed3cd09..4dee2836 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -815,7 +815,7 @@ def ticket_list(request): import json from helpdesk.lib import b64decode try: - query_params = json.loads(b64decode(str(saved_query.query))) + query_params = json.loads(b64decode(str(saved_query.query)).decode()) except ValueError: # Query deserialization failed. (E.g. was a pickled query) return HttpResponseRedirect(reverse('helpdesk:list')) @@ -1112,7 +1112,7 @@ def run_report(request, report): import json from helpdesk.lib import b64decode try: - query_params = json.loads(b64decode(str(saved_query.query))) + query_params = json.loads(b64decode(str(saved_query.query)).decode()) except: return HttpResponseRedirect(reverse('helpdesk:report_index'))