1
0
mirror of https://github.com/django/django.git synced 2025-10-30 00:56:09 +00:00

[5.0.x] Reverted "Refs #30446, Refs #34944 -- Fixed crash when adding GeneratedField with string Value()."

This reverts commit 8b1acc0440.

Backport of de4884b114 from main
This commit is contained in:
Mariusz Felisiak
2023-11-12 20:34:10 +01:00
parent 7a21ea5464
commit 5b1d0a6be0
3 changed files with 1 additions and 19 deletions

View File

@@ -2227,7 +2227,6 @@ 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"