Opened 9 years ago

Last modified 9 years ago

#25552 closed Bug

Admin readonly field help text show 'None' — at Initial Version

Reported by: iici-gli Owned by: nobody
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

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 (0)

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