Ticket #4904: newforms.diff

File newforms.diff, 535 bytes (added by Thomas Steinacher <tom@…>, 17 years ago)

let's just remove the assertion

  • django/newforms/util.py

     
    4747        if isinstance(message, list):
    4848            self.messages = ErrorList([smart_unicode(msg) for msg in message])
    4949        else:
    50             assert isinstance(message, basestring), ("%s should be a basestring" % repr(message))
    5150            message = smart_unicode(message)
    5251            self.messages = ErrorList([message])
    5352
Back to Top