summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2019-01-19 13:35:51 +0000
committerTim Graham <timograham@gmail.com>2019-01-23 13:18:03 -0500
commit0ef997966955223086fa83df96169aa80dec48a4 (patch)
treedf8c7cf142da7e1f1ab65f930027d461401e2272 /django
parent8d01edfa65859d2ad5f91ad74745862d0eb91eb0 (diff)
Fixed #30123 -- Removed tuple support in DatabaseIntrospection.get_field_type().
Support for returning tuples was undocumented and error prone.
Diffstat (limited to 'django')
-rw-r--r--django/core/management/commands/inspectdb.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/django/core/management/commands/inspectdb.py b/django/core/management/commands/inspectdb.py
index 5cdd52fccf..92f010a064 100644
--- a/django/core/management/commands/inspectdb.py
+++ b/django/core/management/commands/inspectdb.py
@@ -241,12 +241,6 @@ class Command(BaseCommand):
field_type = 'TextField'
field_notes.append('This field type is a guess.')
- # This is a hook for data_types_reverse to return a tuple of
- # (field_type, field_params_dict).
- if type(field_type) is tuple:
- field_type, new_params = field_type
- field_params.update(new_params)
-
# Add max_length for all CharFields.
if field_type == 'CharField' and row.internal_size:
field_params['max_length'] = int(row.internal_size)