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 )
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 , 9 years ago
Description: | modified (diff) |
---|
comment:2 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 9 years ago
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
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.
Is there a reason for using
help_text=None
as opposed to an empty string?