Django best way to check the model type of a queryset January 3, 2024 by Tarik Ok, I see, I use is instead of isinstance(): if queryset.model is Library : # do something.