Changes between Initial Version and Version 1 of Ticket #25552


Ignore:
Timestamp:
Oct 13, 2015, 12:16:35 PM (9 years ago)
Author:
Tim Graham
Comment:

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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25552 – Description

    initial v1  
    11The help_text_for_field function in contrib/admin/utils returns 'None'  if field.help_text is None.
    22Needs to  following statements:
     3{{{
    34       if hasattr(field, 'help_text'):
    45            help_text = field.help_text
    5 
     6}}}
    67TO:
     8{{{
    79     help_text = getattr(field, 'help_text', '')
     10}}}
Back to Top