Opened 9 years ago

Last modified 9 years ago

#25552 closed Bug

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

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

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?

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