You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Relation has the signature Relation(attribute_name, model_class, rule). Having the model_class argument is kind of a pain; ideally, Relation and Attribute should have matching signatures, and we should figure out the model class to construct a QuerySet from when .query() is called. (What would really be ideal is if we could pass a Q object directly into {attr}__in, but Django doesn't let us do that.)
The text was updated successfully, but these errors were encountered:
This message on django-developers gives a function that adds a prefix to everything in a Q object, which should have the same effect as being able to go Q(foo__in=Q(...)).
Currently,
Relation
has the signatureRelation(attribute_name, model_class, rule)
. Having themodel_class
argument is kind of a pain; ideally,Relation
andAttribute
should have matching signatures, and we should figure out the model class to construct aQuerySet
from when.query()
is called. (What would really be ideal is if we could pass aQ
object directly into{attr}__in
, but Django doesn't let us do that.)The text was updated successfully, but these errors were encountered: