[Django]-Best practice method for evaluating if a Django queryset object (or not) before slicing it?

2👍

You could use:

if isinstance(variable, QuerySet):
    do_this

Leave a comment