On Tue, May 17, 2011 at 3:20 PM, Lucian Nicolescu <lucia...@gmail.com> wrote:
> AFAIK Django does not create SQL instructions for default values. But
> if you specify a default value inside the model field declaration and
> use the orm for inserts it will correctly assign it.

That's the behavior I expected, but that's not what I get.  See the
code I posted.  My Form Model complains that my BooleanField type is
missing when I do not supply it explicitly.

Further, if I exclude it, to make my Form Model happy, I get a
DatabaseError exception since the field in my database has no default
set.


-- 
Greg Donald
destiney.com | gregdonald.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to