diff options
| author | roman_p <romanover9000@gmail.com> | 2022-11-17 17:54:30 +0300 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-11-18 10:13:31 +0100 |
| commit | 04b15022e8d1f49af69d8a1e6cd678f31f1280ff (patch) | |
| tree | d660397856e96a6f779568f8993ab6a2f9c9b795 /django/contrib | |
| parent | 51faf4bd172cd4cb219a9793facbfa00246c9f3c (diff) | |
Fixed #26261 -- Fixed queryset crash when excluding reverse GenericRelation.
Thanks Amir Hadi for the report.
Diffstat (limited to 'django/contrib')
| -rw-r--r-- | django/contrib/contenttypes/fields.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/contenttypes/fields.py b/django/contrib/contenttypes/fields.py index 72b9e7631a..35fcd0d908 100644 --- a/django/contrib/contenttypes/fields.py +++ b/django/contrib/contenttypes/fields.py @@ -461,7 +461,7 @@ class GenericRelation(ForeignObject): to_opts=opts, target_fields=(opts.pk,), join_field=self, - m2m=not self.unique, + m2m=False, direct=False, filtered_relation=filtered_relation, ) |
