summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHynek Cernoch <hynek@sdb.cz>2015-09-17 21:02:14 +0200
committerTim Graham <timograham@gmail.com>2015-09-18 09:33:23 -0400
commiteb0bbb8f3a31eb46eb97771cd9c1eccaf01be119 (patch)
tree5c81d78acc46209f75018bee1ff9f4cb6b4294b5
parent7d471fe6626de2b36b97ac04086d8ea307be8288 (diff)
[1.8.x] Refs #17785 -- Made docstring for sqlite3's get_relations() consistent with other backends.
Backport of 4b9d063da05faa112577a4e3cefd020850a25e9e from master
-rw-r--r--django/db/backends/sqlite3/introspection.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/django/db/backends/sqlite3/introspection.py b/django/db/backends/sqlite3/introspection.py
index c80248939d..26410152be 100644
--- a/django/db/backends/sqlite3/introspection.py
+++ b/django/db/backends/sqlite3/introspection.py
@@ -88,10 +88,9 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
def get_relations(self, cursor, table_name):
"""
- Returns a dictionary of {field_index: (field_index_other_table, other_table)}
- representing all relationships to the given table. Indexes are 0-based.
+ Return a dictionary of {field_name: (field_name_other_table, other_table)}
+ representing all relationships to the given table.
"""
-
# Dictionary of relations to return
relations = {}