Ticket #30463: ticket-30463.diff
File ticket-30463.diff, 448 bytes (added by , 6 years ago) |
---|
-
tests/ordering/models.py
diff --git a/tests/ordering/models.py b/tests/ordering/models.py index 85e8c59bb6..bdeff9c9f5 100644
a b class Article(models.Model): 30 30 pub_date = models.DateTimeField() 31 31 32 32 class Meta: 33 ordering = ('-pub_date', 'headline' )33 ordering = ('-pub_date', 'headline', models.F('author__name').asc()) 34 34 35 35 def __str__(self): 36 36 return self.headline