summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-12-12 01:51:46 -0800
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-12-12 10:51:46 +0100
commitb7d05b2e5a7136ed92f77780dac9b44aef0bae59 (patch)
treecdfc6bed3d88159382090a064ddbe5f5b435cf9c
parent52018e1615edfafcb5170ba6b473132fe2f9a534 (diff)
Refs #23919 -- Used yield from in inspectdb.
-rw-r--r--django/core/management/commands/inspectdb.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/core/management/commands/inspectdb.py b/django/core/management/commands/inspectdb.py
index 537cd45218..1b173de475 100644
--- a/django/core/management/commands/inspectdb.py
+++ b/django/core/management/commands/inspectdb.py
@@ -170,8 +170,7 @@ class Command(BaseCommand):
yield ' %s' % field_desc
is_view = any(info.name == table_name and info.type == 'v' for info in table_info)
is_partition = any(info.name == table_name and info.type == 'p' for info in table_info)
- for meta_line in self.get_meta(table_name, constraints, column_to_field_name, is_view, is_partition):
- yield meta_line
+ yield from self.get_meta(table_name, constraints, column_to_field_name, is_view, is_partition)
def normalize_col_name(self, col_name, used_column_names, is_relation):
"""