south populating string False in sqlite

1 view
Skip to first unread message

msoulier

unread,
Feb 10, 2012, 4:54:17 PM2/10/12
to South Users
I have models with boolean fields and a default of a Python False.

I'm then finding this in the sqlite database

uca_admin = False

That should be 0, not False. The subsequent code reading from that db
is rather surprised to find the string False for a boolean (which,
granted, the sqlite developers should not permit), and I now have to
write additional code to account for it. It is not in Python, my
product uses various languages.

Any chance of fixing this?

Thanks.

Andrew Godwin

unread,
Feb 10, 2012, 5:23:05 PM2/10/12
to south...@googlegroups.com

Have you tried using the development version? We've fixed stuff like
this since the past release, if I remember right.

Andrew

Michael P. Soulier

unread,
Feb 10, 2012, 5:45:00 PM2/10/12
to south...@googlegroups.com
On 10/02/12 Andrew Godwin said:

> Have you tried using the development version? We've fixed stuff like
> this since the past release, if I remember right.

I'm using 0.7.3.

Mike

Michael P. Soulier

unread,
Feb 10, 2012, 5:46:01 PM2/10/12
to south...@googlegroups.com
On 10/02/12 Andrew Godwin said:

> Have you tried using the development version? We've fixed stuff like
> this since the past release, if I remember right.

I'll try cloning the Hg repo and see if it's fixed...

Andrew Godwin

unread,
Feb 10, 2012, 5:52:36 PM2/10/12
to south...@googlegroups.com

You can also just "pip install -U South==dev"

Andrew

Reply all
Reply to author
Forward
0 new messages