mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
This should allow smarter output_field inferring in functions dealing
with text expressions.
Regression in f333e3513e.
This commit is contained in:
committed by
Mariusz Felisiak
parent
5f2f12f61c
commit
8b1acc0440
@@ -2227,6 +2227,7 @@ class ValueTests(TestCase):
|
||||
with self.subTest(type=type(value)):
|
||||
expr = Value(value)
|
||||
self.assertIsInstance(expr.output_field, output_field_type)
|
||||
self.assertEqual(Value("foo").output_field.max_length, 3)
|
||||
|
||||
def test_resolve_output_field_failure(self):
|
||||
msg = "Cannot resolve expression type, unknown output_field"
|
||||
|
||||
Reference in New Issue
Block a user