python - why slicing django queryset return a list -


i have queryset derived piece of code, called objs. print both type(objs) , type(objs[0:10]) in same print function follows:

print(type(objs), type(objs[0:10])) 

the results show type(objs) queryset. type(objs[0:10]) list

but when lookup django document, second 1 should queryset. possible reasons this?

the django docs say:

slicing queryset has been evaluated returns list.

if slice unevaluated queryset, you'll queryset (as long don't use "step" parameter of slice syntax).


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -