Commit ff38e0b1 authored by Karen Tracey's avatar Karen Tracey
Browse files

Fixed #12125 -- Fixed a typo in the generic views date_based test that caused...

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
parent e18af06e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)