diff options
author | Tim Graham <timograham@gmail.com> | 2021-11-10 00:21:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-10 06:21:36 +0100 |
commit | afea68ca51c20b726d3b97aaffdfe4e3b632e435 (patch) | |
tree | cc7dde720eeb082200b3124425e6fad2934ef354 /django/db/backends/postgresql/introspection.py | |
parent | 6bc437c0d82675ebe6aa92c8e249892205c316ef (diff) | |
download | django-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/postgresql/introspection.py')
-rw-r--r-- | django/db/backends/postgresql/introspection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/postgresql/introspection.py b/django/db/backends/postgresql/introspection.py index 4e35cb9e97..5a50ee68b7 100644 --- a/django/db/backends/postgresql/introspection.py +++ b/django/db/backends/postgresql/introspection.py @@ -119,7 +119,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. """ return {row[0]: (row[2], row[1]) for row in self.get_key_columns(cursor, table_name)} |