Django filter bool not iterable

Posted by dana on Stack Overflow See other posts from Stack Overflow or by dana
Published on 2010-06-12T16:28:19Z Indexed on 2010/06/12 16:32 UTC
Read the original article Hit count: 315

Filed under:
|
|
|

I want to filter all Relation Objects where (relation= following relation in a virtual community) the date one has initiated the following is in the past, related to the moment now.

The following declaration seems to be wrong, as a bool object is not iterable. Is there another way to do that?

d = Relations.objects.filter(date_follow < datetime.now())

© Stack Overflow or respective owner

Related posts about django

Related posts about filter