Blog: Not blank-trueable?

3 views
Skip to first unread message

Hank Sims

unread,
Feb 2, 2009, 1:03:24 PM2/2/09
to Django Basic Apps
Hi:

I've got a modified version of Basic Blog that's throwing a weird
error I can't seem to shake.
I defined the Post model's "tease" field thusly:

tease = models.TextField(_('tease'), blank=True, null=True)

I can create Post instances from the command line without passing
a post.tease value. They save, no problem. But for some reason I can
not get this going in the admin. The admin doesn't let me save without
giving something to tease. The label for the field shows up bold in
the admin, indicating a required field.
Any reason why this might be? I'm scratching my head senseless
over this.

Best,

Hank Sims

Hank Sims

unread,
Feb 2, 2009, 6:52:15 PM2/2/09
to Django Basic Apps
Never mind -- it was due to a forgotten formfield_for_dbfield
override in the admin class.

Carry on...

Hank Sims
Reply all
Reply to author
Forward
0 new messages