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:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user