From 3dce17ddc4a891856a0831f5f26716675d7a3bab Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Wed, 5 Dec 2007 09:40:16 +0000 Subject: [PATCH] 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 --- AUTHORS | 2 -- README | 1 - django/conf/locale/en/LC_MESSAGES/django.mo | Bin 627 -> 627 bytes django/conf/locale/en/LC_MESSAGES/djangojs.mo | Bin 367 -> 367 bytes tests/regressiontests/forms/tests.py | 2 ++ tests/regressiontests/forms/util.py | 7 +++++++ 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index ab349fabc3..ffb9e87690 100644 --- a/AUTHORS +++ b/AUTHORS @@ -254,7 +254,6 @@ answer newbie questions, and generally made Django that much better: phil@produxion.net phil.h.smith@gmail.com Gustavo Picon - pigletto Luke Plant plisk Mihai Preda @@ -335,7 +334,6 @@ answer newbie questions, and generally made Django that much better: wam-djangobug@wamber.net Wang Chun Filip Wasilewski - Filip Wasilewski Dan Watson Chris Wesseling James Wheare diff --git a/README b/README index 084f863a1e..503949041e 100644 --- a/README +++ b/README @@ -34,4 +34,3 @@ To contribute to Django: * Check out http://www.djangoproject.com/community/ for information about getting involved. - diff --git a/django/conf/locale/en/LC_MESSAGES/django.mo b/django/conf/locale/en/LC_MESSAGES/django.mo index 038e794a83aaaea40acfedeedbf3d061df69e654..5bb3059a2cdf97f98edc0f60579e3c68ff569d14 100644 GIT binary patch delta 34 pcmey&@|k5rHY1;*p{|jof}w$xskyF!+2l&bbJOQ%13D5ul diff --git a/django/conf/locale/en/LC_MESSAGES/djangojs.mo b/django/conf/locale/en/LC_MESSAGES/djangojs.mo index b51ec1c7026963f4ab75e0f0e0b42a1a55077fe7..41cc5b54c031661dd8e9b9daa94107b58b0076d8 100644 GIT binary patch delta 34 qcmaFQ^qy%#mw>shp`oskrGlY>m8pfUf!V}a>zG4B+$MW7ssI4E8VU3O delta 34 qcmaFQ^qy%#mw>6Rp^>hErGlZMm8qe&f#Jki>zGSR(k6Q|ssI4FVG2Y5 diff --git a/tests/regressiontests/forms/tests.py b/tests/regressiontests/forms/tests.py index f8c5c486e4..bb0e30b874 100644 --- a/tests/regressiontests/forms/tests.py +++ b/tests/regressiontests/forms/tests.py @@ -2,6 +2,7 @@ from extra import tests as extra_tests from fields import tests as fields_tests from forms import tests as form_tests +from error_messages import tests as custom_error_message_tests from localflavor.ar import tests as localflavor_ar_tests from localflavor.au import tests as localflavor_au_tests from localflavor.br import tests as localflavor_br_tests @@ -30,6 +31,7 @@ __test__ = { 'extra_tests': extra_tests, 'fields_tests': fields_tests, 'form_tests': form_tests, + 'custom_error_message_tests': custom_error_message_tests, 'localflavor_ar_tests': localflavor_ar_tests, 'localflavor_au_tests': localflavor_au_tests, 'localflavor_br_tests': localflavor_br_tests, diff --git a/tests/regressiontests/forms/util.py b/tests/regressiontests/forms/util.py index 4f81709082..bfaf73f6bc 100644 --- a/tests/regressiontests/forms/util.py +++ b/tests/regressiontests/forms/util.py @@ -42,4 +42,11 @@ u'' # Can take a mixture in a list. >>> print ValidationError(["First error.", u"Not \u03C0.", ugettext_lazy("Error.")]).messages
  • First error.
  • Not π.
  • Error.
+ +>>> class VeryBadError: +... def __unicode__(self): return u"A very bad error." + +# Can take a non-string. +>>> print ValidationError(VeryBadError()).messages +
  • A very bad error.
"""