Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

distinct query in django queryset

models.Shop.objects.order_by().values_list('city').distinct()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #distinct #query #django #queryset
ADD COMMENT
Topic
Name
9+4 =