1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

queryset-refactor: Fixed a couple of differences between trunk and this branch that were caused by merge errors.

git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6896 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick
2007-12-05 09:40:16 +00:00
parent 0d7b6884df
commit 3dce17ddc4
6 changed files with 9 additions and 3 deletions

View File

@@ -42,4 +42,11 @@ u''
# Can take a mixture in a list.
>>> print ValidationError(["First error.", u"Not \u03C0.", ugettext_lazy("Error.")]).messages
<ul class="errorlist"><li>First error.</li><li>Not π.</li><li>Error.</li></ul>
>>> class VeryBadError:
... def __unicode__(self): return u"A very bad error."
# Can take a non-string.
>>> print ValidationError(VeryBadError()).messages
<ul class="errorlist"><li>A very bad error.</li></ul>
"""