validator_list silently deleted for BooleanFields

1 view
Skip to first unread message

Joseph Kocherhans

unread,
May 4, 2006, 4:22:24 PM5/4/06
to django-d...@googlegroups.com
Line 257 of django/db/models/fields/__init__.py explicitly deletes the
validator_list and is_required parameters for BooleanFields. The
frustrating part is that no errors are raised by providing a
validator_list argument to a BooleanField, and I can't find any
doumentation for this behavior. I understand and agree with not
allowing is_required, but I have a use case for allowing
validator_list. Is there any particular reason it's being deleted?
(Other than that it often times simply doesn't have a value... the
particular validator should deal with that by checking for a KeyError
IMHO) Regardless though, silently deleting the attribute without an
error or at least a warning is not very nice ;-)

Ticket filed:
http://code.djangoproject.com/ticket/1767

Joseph

Reply all
Reply to author
Forward
0 new messages