Opened 12 years ago

Closed 12 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: dev
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

Description

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 by Jannis Leidel, 12 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Claude Paroz <claude@…>, 12 years ago

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