[Django]-Weird database issue in django

3👍

It’s a bug with south and sqlite: http://south.aeracode.org/ticket/600

0👍

Maybe it is some sqlite specific problem, but actually I don’t know. Just some idea’s what I would do.

You could take a look at the actual SQL query and check if it is correct:

# print PrivateMessage.objects.filter(deleted_from=False).query

Check what’s the values and types of the deleted_from model field:

# [(m.deleted_from, type(m.deleted_from)) for m in PrivateMessage.objects.all()]
👤Haes

Leave a comment