TO:
help_text = getattr(field, 'help_text', '')
--
Ticket URL: <https://code.djangoproject.com/ticket/25552>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Old 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', '')
New 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', '')
}}}
--
Comment:
Is there a reason for using `help_text=None` as opposed to an empty
string?
--
Ticket URL: <https://code.djangoproject.com/ticket/25552#comment:1>
* owner: nobody => romanfuentes
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/25552#comment:2>
* status: assigned => closed
* resolution: => wontfix
Comment:
Closing as "won't fix" pending a justification of why support for
`help_text=None` is needed.
--
Ticket URL: <https://code.djangoproject.com/ticket/25552#comment:3>