Opened 18 years ago
Closed 18 years ago
#4904 closed (duplicate)
newforms.ValidationError doesn't accept translated strings
Reported by: | 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 |
Pull Requests: | How to create a pull request | ||
Description ¶
>>> 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)
comment:1 by , 18 years ago
Cc: | added |
---|
by , 18 years ago
Attachment: | newforms.diff added |
---|
comment:2 by , 18 years ago
Has patch: | set |
---|
comment:4 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Looks like #5370 has a slightly better patch.
Note:
See TracTickets
for help on using tickets.
let's just remove the assertion