Ticket #4904: newforms.diff
File newforms.diff, 535 bytes (added by , 17 years ago) |
---|
-
django/newforms/util.py
47 47 if isinstance(message, list): 48 48 self.messages = ErrorList([smart_unicode(msg) for msg in message]) 49 49 else: 50 assert isinstance(message, basestring), ("%s should be a basestring" % repr(message))51 50 message = smart_unicode(message) 52 51 self.messages = ErrorList([message]) 53 52