Go back to the original helpdesk repo

This commit is contained in:
Tony Zhu 2014-10-23 10:44:59 -04:00
parent af1a297460
commit dc86236136

View File

@ -11,7 +11,6 @@ The API documentation can be accessed by visiting http://helpdesk/api/help/
through templates/helpdesk/help_api.html. through templates/helpdesk/help_api.html.
""" """
import json
from django import forms from django import forms
from django.contrib.auth import authenticate from django.contrib.auth import authenticate
try: try:
@ -121,7 +120,7 @@ class API:
def api_public_list_queues(self): 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): def api_public_find_user(self):
@ -326,4 +325,3 @@ class API:
ticket.save() ticket.save()
return api_return(STATUS_OK) return api_return(STATUS_OK)