Changes between Initial Version and Version 1 of Ticket #26195, comment 5
- Timestamp:
- Mar 22, 2016, 1:49:43 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26195, comment 5
initial v1 14 14 author = models.ForeignKey(Author) 15 15 16 # Equivalent toorder_by('author__name')16 # Equivalent of order_by('author__name') 17 17 Book.objects.order_by('author') 18 18 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. 20 21 Book.objects.order_by('author__pk') 21 22