Ticket #28689: 28689.diff

File 28689.diff, 1.0 KB (added by Mariusz Felisiak, 4 years ago)
  • tests/expressions/models.py

    diff --git a/tests/expressions/models.py b/tests/expressions/models.py
    index 85f18fdf0e..34fd9dff16 100644
    a b class Experiment(models.Model): 
    5050    end = models.DateTimeField()
    5151
    5252    class Meta:
     53        db_table = 'expressions_ExPeRiMeNt'
    5354        ordering = ('name',)
    5455
    5556    def duration(self):
  • tests/expressions/tests.py

    diff --git a/tests/expressions/tests.py b/tests/expressions/tests.py
    index f941c5521e..d838e196f0 100644
    a b class BasicExpressionsTests(TestCase): 
    545545        expr = FuncB(FuncA())
    546546        self.assertEqual(expr.output_field, FuncA.output_field)
    547547
     548    def test_outerref_mixed_case_table_name(self):
     549        inner = Result.objects.filter(result_time__gte=OuterRef('experiment__assigned'))
     550        outer = Result.objects.filter(pk__in=Subquery(inner.values('pk')))
     551        self.assertFalse(outer.exists())
    548552
    549553class IterableLookupInnerExpressionsTests(TestCase):
    550554    @classmethod
Back to Top