Opened 9 years ago

Closed 9 years ago

#25552 closed Bug (wontfix)

Admin readonly field help text show 'None'

Reported by: iici-gli Owned by: Roman Fuentes
Component: contrib.admin Version: 1.8
Severity: Normal Keywords: help text
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by Tim Graham)

The help_text_for_field function in contrib/admin/utils returns 'None' if field.help_text is None.
Needs to following statements:

       if hasattr(field, 'help_text'):
            help_text = field.help_text

TO:

     help_text = getattr(field, 'help_text', '')

Change History (3)

comment:1 by Tim Graham, 9 years ago

Description: modified (diff)

Is there a reason for using help_text=None as opposed to an empty string?

comment:2 by Roman Fuentes, 9 years ago

Owner: changed from nobody to Roman Fuentes
Status: newassigned

comment:3 by Tim Graham, 9 years ago

Resolution: wontfix
Status: assignedclosed

Closing as "won't fix" pending a justification of why support for help_text=None is needed.

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