Attempted fix for failures on master
parent
69bbe58dc7
commit
0232befbae
|
|
@ -157,7 +157,7 @@ class PolymorphicQuerySet(QuerySet):
|
||||||
# Implementation in _translate_polymorphic_filter_defnition."""
|
# Implementation in _translate_polymorphic_filter_defnition."""
|
||||||
return self.filter(not_instance_of=args)
|
return self.filter(not_instance_of=args)
|
||||||
|
|
||||||
def _filter_or_exclude(self, negate, *args, **kwargs):
|
def _filter_or_exclude(self, negate, args, kwargs):
|
||||||
# We override this internal Django functon as it is used for all filter member functions.
|
# We override this internal Django functon as it is used for all filter member functions.
|
||||||
q_objects = translate_polymorphic_filter_definitions_in_args(
|
q_objects = translate_polymorphic_filter_definitions_in_args(
|
||||||
self.model, args, using=self.db
|
self.model, args, using=self.db
|
||||||
|
|
@ -167,7 +167,7 @@ class PolymorphicQuerySet(QuerySet):
|
||||||
self.model, kwargs, using=self.db
|
self.model, kwargs, using=self.db
|
||||||
)
|
)
|
||||||
return super(PolymorphicQuerySet, self)._filter_or_exclude(
|
return super(PolymorphicQuerySet, self)._filter_or_exclude(
|
||||||
negate, *(list(q_objects) + additional_args), **kwargs
|
negate, (list(q_objects) + additional_args), kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
def order_by(self, *field_names):
|
def order_by(self, *field_names):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue