Commit 8061665c authored by Karen Tracey's avatar Karen Tracey
Browse files

[1.1.X] (In [11697]) Fixed #12125 -- Fixed a typo in the generic views...

[1.1.X] (In [11697]) Fixed #12125 -- Fixed a typo in the generic views date_based test that caused it to fail in November. Thanks brutasse.

r11697 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11698 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent e109de3b
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)