Limit API queries for snipts to 20 per page.

master
Nick Sergeant 2015-08-28 12:15:01 -04:00
parent 3bafbb7402
commit 57d2e06f68
1 changed files with 2 additions and 2 deletions

View File

@ -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):