diff --git a/k4ever/api/views.py b/k4ever/api/views.py index 364c227..1873c83 100644 --- a/k4ever/api/views.py +++ b/k4ever/api/views.py @@ -25,7 +25,7 @@ def showItem(request, itemid): return HttpResponse(status=400) #return json-container - container = serializers.serialize('json', item) + container = serializers.serialize('json', [item]) return HttpResponse(container,'application/javascript') @@ -67,6 +67,6 @@ def buyItem(request, itemid, buymode=""): def history(request): hist = Order.objects.filter(user=request.user.id).order_by("-dateTime") #return json-container - container = serializers.serialize('json', hist) + container = serializers.serialize('json', [hist]) return HttpResponse(container,'application/javascript')