Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#15052 closed (fixed)

Incorrect docstring in DayMixin

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

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 4 years ago by ninja_otoko

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 4 years ago by rasca

  • Owner changed from nobody to rasca
  • Status changed from new to assigned

comment:3 Changed 4 years ago by Alex

  • Resolution set to fixed
  • Status changed from assigned to closed

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

comment:4 Changed 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

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