Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to extract field values in list from queryset in django

queryset = UnitTestCollection.objects.filter(unit__type=unit_type).values_list('<insert field>', flat=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #extract #field #values #list #queryset #django
ADD COMMENT
Topic
Name
9+3 =