Opened 3 hours ago

Last modified 92 minutes ago

#37489 assigned Cleanup/optimization

Forms: Add missing inline doc comment for Field.template_name.

Reported by: Zishan Kadri Owned by: Zishan Kadri
Component: Forms Version: dev
Severity: Normal Keywords: easy pickings
Cc: Triage Stage: Unreviewed
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 (2)

comment:1 by Zishan Kadri, 3 hours ago

Owner: set to Zishan Kadri
Status: new → assigned

comment:2 by Zishan Kadri, 92 minutes ago

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