Commit ec0bdcce authored by ibuler's avatar ibuler

[Update] 修改id cache api mixin

parent 1ba6fa65
......@@ -46,6 +46,7 @@ class IDInCacheFilterMixin(object):
resources_id = cache.get(cache_key)
if not resources_id or not isinstance(resources_id, list):
queryset = queryset.none()
return queryset
queryset = queryset.filter(id__in=resources_id)
return queryset
......
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