newforms.ValidationError doesn't accept translated strings
Reported by: |
Thomas Steinacher <tom@…> |
Owned by: |
nobody |
Component:
|
Forms
|
Version:
|
dev
|
Severity:
|
|
Keywords:
|
|
Cc:
|
djoume@…
|
Triage Stage:
|
Unreviewed
|
Has patch:
|
yes
|
Needs documentation:
|
no
|
Needs tests:
|
no
|
Patch needs improvement:
|
no
|
Easy pickings:
|
no
|
UI/UX:
|
no
|
>>> from django.utils.translation import ugettext_lazy as _
>>> from django.newforms import ValidationError
>>> ValidationError(_(u'Hello'))
Traceback (most recent call last):
File "<console>", line 1, in ?
File "/home/tom/django/django/newforms/util.py", line 50, in __init__
assert isinstance(message, basestring), ("%s should be a basestring" % repr(message))
AssertionError: <django.utils.functional.__proxy__ object at 0xb760a4ec> should be a basestring
>>>
Change History
(5)
Resolution: |
→ duplicate
|
Status: |
new → closed
|
let's just remove the assertion