From 57d2e06f68560f325dd26eb6bdfa076c8834e6ee Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Fri, 28 Aug 2015 12:15:01 -0400 Subject: [PATCH] Limit API queries for snipts to 20 per page. --- snipts/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snipts/api.py b/snipts/api.py index e9f772e..f46ba96 100644 --- a/snipts/api.py +++ b/snipts/api.py @@ -236,7 +236,7 @@ class PublicSniptResource(ModelResource): allowed_methods = ['get'] filtering = {'user': 'exact', 'blog_post': 'exact'} ordering = ['created', 'modified'] - max_limit = 200 + max_limit = 20 cache = SimpleCache() def dehydrate(self, bundle): @@ -364,7 +364,7 @@ class PrivateSniptResource(ModelResource): validation = SniptValidation() ordering = ['created', 'modified'] always_return_data = True - max_limit = 200 + max_limit = 20 cache = SimpleCache() def dehydrate(self, bundle):