Kaydet (Commit) 4b9d063d authored tarafından Hynek Cernoch's avatar Hynek Cernoch Kaydeden (comit) Tim Graham

Refs #17785 -- Made docstring for sqlite3's get_relations() consistent with other backends.

üst d074926c
...@@ -100,10 +100,9 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): ...@@ -100,10 +100,9 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
def get_relations(self, cursor, table_name): def get_relations(self, cursor, table_name):
""" """
Returns a dictionary of {field_index: (field_index_other_table, other_table)} Return a dictionary of {field_name: (field_name_other_table, other_table)}
representing all relationships to the given table. Indexes are 0-based. representing all relationships to the given table.
""" """
# Dictionary of relations to return # Dictionary of relations to return
relations = {} relations = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment