fix @mattbasta's sloppy form validation errors (bug 823161)
This commit is contained in:
Родитель
c38ec60427
Коммит
e0fe5b0487
|
@ -318,9 +318,9 @@ class BangoPaymentAccountForm(happyforms.Form):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def happy_errors(self):
|
def happy_errors(self):
|
||||||
return '\n'.join(u'<div><span>%u:</span> %u</div>' %
|
return u'\n'.join(u'<div><span>%s:</span> %s</div>' %
|
||||||
(field.label, field.errors)
|
(unicode(field.label), unicode(field.errors))
|
||||||
for field in self if field.errors)
|
for field in self if field.errors)
|
||||||
|
|
||||||
|
|
||||||
class BangoAccountListForm(happyforms.Form):
|
class BangoAccountListForm(happyforms.Form):
|
||||||
|
|
Загрузка…
Ссылка в новой задаче