Skip to content

Tag: django

How to get QuerySet values separately?

How I can to get values from QuerySet separately? The result of my QuerySet now is <QuertSet[<value: 5>, <value:90>]> How I can get 5, 90 to separate variable ? Answer There are many ways you can acheive it. For example: or using values_list(): If you want the first two values of a queryset,…