Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

order_by django queryset order by ordering

Entry.objects.filter(pub_date__year=2005).order_by('-pub_date', 'headline')
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #django #queryset #order #ordering
ADD COMMENT
Topic
Name
2+6 =