From 0790340eab54c07c36ef5923596ba185c360ced8 Mon Sep 17 00:00:00 2001 From: Tom Price Date: Tue, 2 Dec 2014 16:25:53 +0000 Subject: [PATCH] Fixed bug where not limited dict length for api queries --- RIGS/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RIGS/views.py b/RIGS/views.py index c90e39b4..3646ab5a 100644 --- a/RIGS/views.py +++ b/RIGS/views.py @@ -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) \ No newline at end of file