Changes between Initial Version and Version 1 of Ticket #26195, comment 5


Ignore:
Timestamp:
Mar 22, 2016, 1:49:43 PM (9 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26195, comment 5

    initial v1  
    1414    author = models.ForeignKey(Author)
    1515
    16 # Equivalent to order_by('author__name')
     16# Equivalent of order_by('author__name')
    1717Book.objects.order_by('author')
    1818
    19 # Equivalent of order_by('author__id'), it bypasses the defined ordering but results in a JOIN.
     19# Equivalent of order_by('author__id').
     20# It bypasses the _meta.ordering but results in a JOIN.
    2021Book.objects.order_by('author__pk')
    2122
Back to Top