[Update] 修改id cache api mixin

pull/3219/head
ibuler 5 years ago
parent 1ba6fa65e0
commit ec0bdcce9e

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

Loading…
Cancel
Save