[Answered ]-Boolean Comparison in Django Queryset?

4๐Ÿ‘

โœ…

The query is correct. Make sure there are records in the database being queried. Do a Room.objects.all() and examine any for the is_course = to False.

๐Ÿ‘คJosh Smeaton

-2๐Ÿ‘

I see this problem too (same SQLite + Django 1.2 also). Must be some ORM bug. try running the following statement to fix it:

Room.objects.all().update(is_course=False)

after that, you should get results.

๐Ÿ‘คadum

Leave a comment