Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

value list in django

>>> qs1 = Author.objects.values_list('name')
>>> qs2 = Entry.objects.values_list('headline')
>>> qs1.union(qs2).order_by('name')
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #list #django
ADD COMMENT
Topic
Name
6+8 =