Ticket #22466: test22466.diff

File test22466.diff, 612 bytes (added by Tim Graham, 11 years ago)
  • tests/queries/tests.py

    diff --git a/tests/queries/tests.py b/tests/queries/tests.py
    index 6d8996c..8bbe72b 100644
    a b class Queries4Tests(BaseQuerysetTest):  
    13971397        qs = Author.objects.order_by().order_by('name')
    13981398        self.assertTrue('ORDER BY' in qs.query.get_compiler(qs.db).as_sql()[0])
    13991399
     1400    def test_order_by_reverse_fk(self):
     1401        list(SimpleCategory.objects.all().order_by('categoryitem'))
     1402
    14001403    def test_ticket10181(self):
    14011404        # Avoid raising an EmptyResultSet if an inner query is probably
    14021405        # empty (and hence, not executed).
Back to Top