diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-12-08 09:00:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-08 09:00:35 +0100 |
commit | cbc0fb370583c6371eb2901f752ce286f008a6a4 (patch) | |
tree | 335df96c05378222c29b877a1cff28b027c19f4d /tests | |
parent | 95a101a690402076321331d56e67d896e8f6dfbc (diff) | |
download | django-cbc0fb370583c6371eb2901f752ce286f008a6a4.tar.gz |
Made inspectdb used Cursor.description.display_size for CharFields' max_length.
internal_size is size for fixed-size types not for char types.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/introspection/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/introspection/tests.py b/tests/introspection/tests.py index a877f25e56..459a405932 100644 --- a/tests/introspection/tests.py +++ b/tests/introspection/tests.py @@ -132,7 +132,7 @@ class IntrospectionTests(TransactionTestCase): ) self.assertEqual( [ - r[3] + r[2] for r in desc if connection.introspection.get_field_type(r[1], r) == "CharField" ], |