Opened 13 years ago

Closed 13 years ago

Last modified 12 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 Changed 13 years ago by ninja_otoko

Triage Stage: UnreviewedReady for checkin

comment:2 Changed 13 years ago by rasca

Owner: changed from nobody to rasca
Status: newassigned

comment:3 Changed 13 years ago by Alex Gaynor

Resolution: fixed
Status: assignedclosed

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

comment:4 Changed 12 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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