mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #26261 -- Fixed queryset crash when excluding reverse GenericRelation.
Thanks Amir Hadi for the report.
This commit is contained in:
committed by
Mariusz Felisiak
parent
51faf4bd17
commit
04b15022e8
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user