mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-16 21:12:13 +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,
|
||||
}
|
||||
results.append(data)
|
||||
json = simplejson.dumps(results)
|
||||
json = simplejson.dumps(results[:20])
|
||||
return HttpResponse(json, content_type="application/json") # Always json
|
||||
|
||||
return HttpResponse(model)
|
||||
Reference in New Issue
Block a user