Opened 3 weeks ago

Closed 3 weeks ago

#37489 closed Cleanup/optimization (fixed)

Missing inline doc comment for Field.template_name.

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

Description

Field.__init__() has inline comments documenting most of its arguments (required, label, initial, etc.), but template_name is missing one.

I propose adding a short comment in the same style:

        # template_name -- Name of the template to use in Field.as_field_group.
        #                  By default Django uses the "django/forms/field.html"
        #                  template which is designed for use with the default
        #                  "django/forms/div.html" form style.

Change History (7)

comment:1 by Zishan Kadri, 3 weeks ago

Owner: set to Zishan Kadri
Status: new → assigned

comment:2 by Zishan Kadri, 3 weeks ago

Has patch: set

comment:3 by David Smith, 3 weeks ago

Severity: Normal → Low
Triage Stage: Unreviewed → Accepted

Sounds reasonable; it would be consistent with the other comments in this area.

comment:4 by blighj, 3 weeks ago

Patch needs improvement: set

comment:5 by blighj, 3 weeks ago

Patch needs improvement: unset
Triage Stage: Accepted → Ready for checkin

comment:6 by Sarah Boyce, 3 weeks ago

Summary: Forms: Add missing inline doc comment for Field.template_name. → Missing inline doc comment for Field.template_name.

comment:7 by Sarah Boyce <42296566+sarahboyce@…>, 3 weeks ago

Resolution: → fixed
Status: assigned → closed

In 9425a85c:

Fixed #37489 -- Added comment documenting Field.template_name.

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