mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Fixed bug where not limited dict length for api queries
This commit is contained in:
@@ -214,7 +214,7 @@ class SecureAPIRequest(generic.View):
|
|||||||
'label': o.name,
|
'label': o.name,
|
||||||
}
|
}
|
||||||
results.append(data)
|
results.append(data)
|
||||||
json = simplejson.dumps(results)
|
json = simplejson.dumps(results[:20])
|
||||||
return HttpResponse(json, content_type="application/json") # Always json
|
return HttpResponse(json, content_type="application/json") # Always json
|
||||||
|
|
||||||
return HttpResponse(model)
|
return HttpResponse(model)
|
||||||
Reference in New Issue
Block a user