From dc86236136feaa8b901ac6488ebb4562a9acb815 Mon Sep 17 00:00:00 2001 From: Tony Zhu Date: Thu, 23 Oct 2014 10:44:59 -0400 Subject: [PATCH] Go back to the original helpdesk repo --- helpdesk/views/api.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/helpdesk/views/api.py b/helpdesk/views/api.py index 1b682ff3..140c80c6 100644 --- a/helpdesk/views/api.py +++ b/helpdesk/views/api.py @@ -11,7 +11,6 @@ The API documentation can be accessed by visiting http://helpdesk/api/help/ through templates/helpdesk/help_api.html. """ -import json from django import forms from django.contrib.auth import authenticate try: @@ -121,7 +120,7 @@ class API: def api_public_list_queues(self): - return api_return(STATUS_OK, json.dumps([{"id": "%s" % q.id, "title": "%s" % q.title} for q in Queue.objects.all()]), json=True) + return api_return(STATUS_OK, simplejson.dumps([{"id": "%s" % q.id, "title": "%s" % q.title} for q in Queue.objects.all()]), json=True) def api_public_find_user(self): @@ -326,4 +325,3 @@ class API: ticket.save() return api_return(STATUS_OK) -