mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Made inspectdb used Cursor.description.display_size for CharFields' max_length.
internal_size is size for fixed-size types not for char types.
This commit is contained in:
@@ -119,10 +119,10 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
||||
FieldInfo(
|
||||
name,
|
||||
data_type,
|
||||
None,
|
||||
get_field_size(data_type),
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
not notnull,
|
||||
default,
|
||||
collations.get(name),
|
||||
|
||||
Reference in New Issue
Block a user