From f0cd656ee085863d3a37f1bfb8351486428b4df2 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Wed, 22 Dec 2010 00:44:54 +0000 Subject: Fixed #14933 -- Added ability to SelectDateWidget to cope with new alternative month names added in [14900]. Thanks, alek and Claude Peroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15017 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/i18n/tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/regressiontests/i18n/tests.py b/tests/regressiontests/i18n/tests.py index 5823408bce..0a6f621e3c 100644 --- a/tests/regressiontests/i18n/tests.py +++ b/tests/regressiontests/i18n/tests.py @@ -341,6 +341,14 @@ class FormattingTests(TestCase): finally: deactivate() + # Russian locale (with E as month) + activate('ru') + self.assertEqual( + u'\n\n', + SelectDateWidget(years=range(2009, 2019)).render('mydate', datetime.date(2009, 12, 31)) + ) + deactivate() + # English locale settings.USE_L10N = True -- cgit v1.3