1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed DatabaseIntrospection.get_relations() docstring.

The foreign keys are "in" the given table, not "to" it.
This commit is contained in:
Tim Graham
2021-11-10 00:21:36 -05:00
committed by GitHub
parent 6bc437c0d8
commit afea68ca51
5 changed files with 6 additions and 7 deletions

View File

@@ -115,7 +115,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.
"""
# Dictionary of relations to return
relations = {}