#10458: next_month and previous_month in views.generic.date_based.archive_month
return wrong dates
------------------------------------+---------------------------------------
Reporter: alasdair | Owner: fperetti
Status: new | Milestone: 1.1
Component: Generic views | Version: 1.0
Resolution: | Keywords: next_month
previous_month, pycamp2009
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Comment (by fperetti):
without the patch:
{{{
f...@zoka:~/Desktop/django/tests$ ~/django_test/sqlite3 views
======================================================================
FAIL: Regression for #3031: Archives around Feburary include only one
month
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/fede/Desktop/django/tests/regressiontests/views/tests/generic/date_based.py",
line 77, in test_archive_month_includes_only_month
self.assertEqual(response.context['next_month'],date(2004, 3, 1))
AssertionError: datetime.date(2004, 3, 2) != datetime.date(2004, 3, 1)
----------------------------------------------------------------------
Ran 31 tests in 1.295s
FAILED (failures=1)
}}}
with the patch:
{{{
f...@zoka:~/Desktop/django/tests$ ~/django_test/sqlite3 views
----------------------------------------------------------------------
Ran 31 tests in 1.276s
OK
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/10458#comment:4>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---