newforms admin: decouple TEMPLATE_STRING_IF_INVALID?

11 views
Skip to first unread message

Rubic

unread,
Feb 9, 2007, 10:58:17 AM2/9/07
to Django developers
I've not been following the newforms admin branch, but I
wondered if it could be decoupled from reliance upon
TEMPLATE_STRING_IF_INVALID == ''

It's often useful to have something like 'BADDATA' assigned
to TEMPLATE_STRING_IF_INVALID during development/testing
because such text easy to scan unforseen side effects, both visually
and via a simple text search.

--
Jeff Bauer
Rubicon, Inc.

Adrian Holovaty

unread,
Feb 10, 2007, 12:40:58 AM2/10/07
to django-d...@googlegroups.com

Hi Jeff,

A change like this would be a bit out of the scope of the
newforms-admin branch, but I can see your point. I think the long-term
solution would be to refactor the way TEMPLATE_STRING_IF_INVALID
works, rather than special-case it for the admin site. (How to
refactor it, exactly? I don't know -- it just feels hackish to me.)

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

Reply all
Reply to author
Forward
0 new messages