Force query to list before passing as argument
An unevaluated query ends up being used as an argument of intended list type to another query, which fails in the case of an EmptyQuerySet, which is not iterable.
Please register or sign in to comment
An unevaluated query ends up being used as an argument of intended list type to another query, which fails in the case of an EmptyQuerySet, which is not iterable.