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
The in operator in queries only allows lists or tuples, while all it requires is any kind of iterable, like dicts, sets, frozensets, or even Django's QuerySets:
Currently, to get this to work, the Django QuerySet must be wrapped in list(), an unnecessary addition. One might use collections.abc.Iterable with isinstance to check for a valid iterable.
The text was updated successfully, but these errors were encountered:
The
in
operator in queries only allows lists or tuples, while all it requires is any kind of iterable, like dicts, sets, frozensets, or even Django's QuerySets:Currently, to get this to work, the Django QuerySet must be wrapped in
list()
, an unnecessary addition. One might usecollections.abc.Iterable
withisinstance
to check for a valid iterable.The text was updated successfully, but these errors were encountered: