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
- [Answered ]-Related set of GenericForeignKey in Django
- [Answered ]-Displaying multiple dependent python models on 1 page
- [Answered ]-Django rest framework: Do I really need two separate serializers?
Source:stackexchange.com