Thanks,

Your email wasn't showing up when I sent the second one.  Little bit
of lag i guess.  What a noob mistake, thanks for the clarification.
I did originally have a default in my model instance, but i deleted it
as part of the debugging.

However, I'm still not clear why i can save without specifying values
for the CharField or BooleanField.  I didn't say null="true", and I
didn't provide default values.

Thanks again,
Elliot

On Jun 9, 2:44 pm, Shawn Milochik <shawn.m...@gmail.com> wrote:
> On 06/09/2011 03:42 PM, elliot wrote:
>
> > to my great annoyance, not specifying active has lead to the objects
> > being created as I wanted.  But I cannot rely on this.  Seems like
> > m.active is true if either true or false is specified, and is false if
> > it is never initialized.
>
> See my previous e-mail. If you specify the string 'True' or 'False'
> it'll always evaluate to True.
>
> Also, set a default value in your model.

-- 
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