Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#15052 closed (fixed)

Incorrect docstring in DayMixin

Reported by: rasca Owned by: rasca
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The get_day_format() docstring reads

        Get a month format string in strptime syntax to be used to parse the
        month from url variables.

when it should say *day* instead of *month*

patch:

diff --git a/django/views/generic/dates.py b/django/views/generic/dates.py
index 8c95249..c9e486b 100644
--- a/django/views/generic/dates.py
+++ b/django/views/generic/dates.py
@@ -80,8 +80,8 @@ class DayMixin(object):
 
     def get_day_format(self):
         """
-        Get a month format string in strptime syntax to be used to parse the
-        month from url variables.
+        Get a day format string in strptime syntax to be used to parse the day
+        from url variables.
         """
         return self.day_format

Change History (4)

comment:1 by ninja_otoko, 14 years ago

Triage Stage: UnreviewedReady for checkin

comment:2 by rasca, 14 years ago

Owner: changed from nobody to rasca
Status: newassigned

comment:3 by Alex Gaynor, 14 years ago

Resolution: fixed
Status: assignedclosed

(In [15315]) Fixed #15052 -- corrected an innacurate docstring in the generic views.

comment:4 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top