mirror of
https://github.com/django/django.git
synced 2025-03-10 01:12:53 +00:00
Refs #23919 -- Used yield from in inspectdb.
This commit is contained in:
parent
52018e1615
commit
b7d05b2e5a
@ -170,8 +170,7 @@ class Command(BaseCommand):
|
|||||||
yield ' %s' % field_desc
|
yield ' %s' % field_desc
|
||||||
is_view = any(info.name == table_name and info.type == 'v' for info in table_info)
|
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)
|
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 from self.get_meta(table_name, constraints, column_to_field_name, is_view, is_partition)
|
||||||
yield meta_line
|
|
||||||
|
|
||||||
def normalize_col_name(self, col_name, used_column_names, is_relation):
|
def normalize_col_name(self, col_name, used_column_names, is_relation):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user