summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/introspection.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2021-11-10 00:21:36 -0500
committerGitHub <noreply@github.com>2021-11-10 06:21:36 +0100
commitafea68ca51c20b726d3b97aaffdfe4e3b632e435 (patch)
treecc7dde720eeb082200b3124425e6fad2934ef354 /django/db/backends/mysql/introspection.py
parent6bc437c0d82675ebe6aa92c8e249892205c316ef (diff)
downloaddjango-afea68ca51c20b726d3b97aaffdfe4e3b632e435.tar.gz
Fixed DatabaseIntrospection.get_relations() docstring.
The foreign keys are "in" the given table, not "to" it.
Diffstat (limited to 'django/db/backends/mysql/introspection.py')
-rw-r--r--django/db/backends/mysql/introspection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/mysql/introspection.py b/django/db/backends/mysql/introspection.py
index 2383c9ca1b..4e2fa3ce27 100644
--- a/django/db/backends/mysql/introspection.py
+++ b/django/db/backends/mysql/introspection.py
@@ -151,7 +151,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
def get_relations(self, cursor, table_name):
"""
Return a dictionary of {field_name: (field_name_other_table, other_table)}
- representing all relationships to the given table.
+ representing all foreign keys in the given table.
"""
constraints = self.get_key_columns(cursor, table_name)
relations = {}