Commit 032d7e61 by Matt Drayer Committed by Jonathan Piacenti

mattdrayer/api-increase-upper-bound: Changed id list boundary from 100 to 800

parent 0929dbac
......@@ -88,9 +88,10 @@ class IdsInFilterBackend(filters.BaseFilterBackend):
def filter_queryset(self, request, queryset, view):
"""
Parse querystring to get ids and the filter the queryset
Max of 100 values are allowed for performance reasons
Max of 800 values are allowed for performance reasons
(800 satisfies a specific client integration use case)
"""
upper_bound = getattr(settings, 'API_LOOKUP_UPPER_BOUND', 100)
upper_bound = getattr(settings, 'API_LOOKUP_UPPER_BOUND', 800)
ids = request.QUERY_PARAMS.get('ids')
if ids:
ids = ids.split(",")[:upper_bound]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment