Opened 22 months ago
Closed 22 months ago
#34279 closed Bug (invalid)
Certain character causes django admin to misfunction
Reported by: | Emad Gasser | Owned by: | Emad Gasser |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 4.1 |
Severity: | Normal | Keywords: | Django-admin, field-help_text, models, admin, orm |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When adding a help_text attribute to a field in models,
eg: "This field can be left blank if <v1> is False" (where v1 is used as a variable placeholder in string format for explanation purposes).
When logging into that table in Django admin panel, all fields after that field with the help_text don't appear, making it impossible to make, alter, or delete objects. After several troubleshooting, I discovered that the '>' character was what caused it to break, which hence suggests that it may have been identified as a closing tag, making everything after that field disappear.
Example shown in the image above ⬆️. As shown the help text suddenly breaks after ':', and nothing appears
Attachments (1)
Change History (3)
by , 22 months ago
Attachment: | django error.jpg added |
---|
comment:1 by , 22 months ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 22 months ago
Resolution: | → invalid |
---|---|
Severity: | Release blocker → Normal |
Status: | assigned → closed |
This is a usage mistake. Per the documentation for Field.help_text: