lookup_spawns_duplicates
Return True if the given lookup path spawns duplicates.
def lookup_spawns_duplicates(
opts: Options,
lookup_path: string
) - > boolean
Return True if the given lookup path spawns duplicates.
Parameters
| Name | Type | Description |
|---|---|---|
| opts | Options | The metadata options of the Django model where the lookup starts |
| lookup_path | string | A string representing the field lookup path, with components separated by the LOOKUP_SEP (usually '__') |
Returns
| Type | Description |
|---|---|
boolean | True if any part of the lookup path involves a many-to-many relationship that could result in duplicate rows, otherwise False |