diff --git a/tests/expressions/models.py b/tests/expressions/models.py
index 85f18fdf0e..34fd9dff16 100644
a
|
b
|
class Experiment(models.Model):
|
50 | 50 | end = models.DateTimeField() |
51 | 51 | |
52 | 52 | class Meta: |
| 53 | db_table = 'expressions_ExPeRiMeNt' |
53 | 54 | ordering = ('name',) |
54 | 55 | |
55 | 56 | def duration(self): |
diff --git a/tests/expressions/tests.py b/tests/expressions/tests.py
index f941c5521e..d838e196f0 100644
a
|
b
|
class BasicExpressionsTests(TestCase):
|
545 | 545 | expr = FuncB(FuncA()) |
546 | 546 | self.assertEqual(expr.output_field, FuncA.output_field) |
547 | 547 | |
| 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()) |
548 | 552 | |
549 | 553 | class IterableLookupInnerExpressionsTests(TestCase): |
550 | 554 | @classmethod |