Ticket #30463: ticket-30463.diff

File ticket-30463.diff, 448 bytes (added by Mariusz Felisiak, 6 years ago)

Regression test.

  • 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):  
    3030    pub_date = models.DateTimeField()
    3131
    3232    class Meta:
    33         ordering = ('-pub_date', 'headline')
     33        ordering = ('-pub_date', 'headline', models.F('author__name').asc())
    3434
    3535    def __str__(self):
    3636        return self.headline
Back to Top