Opened 7 years ago

Closed 7 years ago

#18113 closed Cleanup/optimization (fixed)

Class based view mixin docstrings reference incorrect method

Reported by: Keryn Knight <django@…> Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords: get_template CBV
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Both the SingleObjectTemplateResponseMixin and the MultipleObjectTemplateResponseMixin (detail and list, respectively) have the following docstring for the method get_template_names()

Return a list of template names to be used for the request. Must return
a list. May not be called if get_template is overridden.

However, looking through all the generic views, and grepping SVN trunk, I can't find anywhere get_template itself is being defined, or used. The closest thing I can find is the legacy form wizard having that method.

Change History (2)

comment:1 Changed 7 years ago by Jannis Leidel

Triage Stage: UnreviewedAccepted

comment:2 Changed 7 years ago by Claude Paroz <claude@…>

Resolution: fixed
Status: newclosed

In [ed7ea5a6020cb3e09a7f05c4206a11196766bbd2]:

Fixed #18113 -- Corrected get_template_names docstrings.

Thanks Keryn Knight for the report.

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