This has been frustrating me for the better part of an hour.
I have the following model:
sold= models.BooleanField(default=False)
And the following view code:
properties = Property.objects.filter(sold=False).order_by('-created_on');
And the following values in my sqlite3 database:
sqlite> select sold from clients_property;
1
1
1
1
1
And the following template code DOES work (as in, hides the sold items):
{% if not property.sold %}
Anyone know why the query set filter isn't working or why I'm doing it wrong? I've tried:
sold="1"
sold=1
sold="false"
sold=False
sold="False"