Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

finding distince or unique value from a field in django model

models.Shop.objects.order_by().values('city').distinct()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #finding #distince #unique #field #django #model
ADD COMMENT
Topic
Name
4+4 =