Ticket #18726: 18726.diff

File 18726.diff, 512 bytes (added by Mariusz Felisiak, 7 years ago)
  • tests/queries/tests.py

    diff --git a/tests/queries/tests.py b/tests/queries/tests.py
    index 668b07361a..79b2f0580a 100644
    a b class Queries1Tests(TestCase):  
    11721172        with self.assertRaisesMessage(FieldError, msg):
    11731173            Tag.objects.filter(unknown_field__name='generic')
    11741174
     1175    def test_exclude_with_cyclic_fk_relation(self):
     1176        ObjectB.objects.exclude(objecta__objectb__name=F('name')).count()
     1177
    11751178
    11761179class Queries2Tests(TestCase):
    11771180    @classmethod
Back to Top