Fixed #12125 -- Fixed a typo in the generic views date_based test that caused it to fail in November. Thanks brutasse.
--This line and those below, will be ignored-- M tests/regressiontests/views/tests/generic/date_based.py git-svn-id: http://code.djangoproject.com/svn/django/trunk@11697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e18af06eed
commit
ff38e0b1d1
|
@ -100,7 +100,7 @@ class MonthArchiveTest(TestCase):
|
|||
|
||||
now = datetime.now()
|
||||
prev_month = now.date().replace(day=1)
|
||||
if prev_month.month == 11:
|
||||
if prev_month.month == 1:
|
||||
prev_month = prev_month.replace(year=prev_month.year-1, month=12)
|
||||
else:
|
||||
prev_month = prev_month.replace(month=prev_month.month-1)
|
||||
|
|
Loading…
Reference in New Issue