[Django] #34279: Certain character causes django admin to misfunction

4 views
Skip to first unread message

Django

unread,
Jan 22, 2023, 5:53:58 AM1/22/23
to django-...@googlegroups.com
#34279: Certain character causes django admin to misfunction
-------------------------------------+-------------------------------------
Reporter: Emad- | Owner: nobody
Eldin-G |
Type: Bug | Status: new
Component: Database | Version: 4.1
layer (models, ORM) |
Severity: Release | Keywords: Django-admin,
blocker | field-help_text, models, admin, orm
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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.

[[Image(https://github.com/Emad-Eldin-G/Emad-
Eldin-G/blob/main/django%20error.jpg)]]
Example shown in the image above ⬆️. As shown the help text suddenly
breaks after ':', and nothing appears

--
Ticket URL: <https://code.djangoproject.com/ticket/34279>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 22, 2023, 5:54:17 AM1/22/23
to django-...@googlegroups.com
#34279: Certain character causes django admin to misfunction
-------------------------------------+-------------------------------------
Reporter: Emad-Eldin-G | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: Django-admin, | Triage Stage:
field-help_text, models, admin, | Unreviewed
orm |
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Emad-Eldin-G):

* Attachment "django error.jpg" added.

Django

unread,
Jan 22, 2023, 5:55:42 AM1/22/23
to django-...@googlegroups.com
#34279: Certain character causes django admin to misfunction
-------------------------------------+-------------------------------------
Reporter: Emad-Eldin-G | Owner: Emad-
| Eldin-G
Type: Bug | Status: assigned

Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: Django-admin, | Triage Stage:
field-help_text, models, admin, | Unreviewed
orm |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Emad-Eldin-G):

* owner: nobody => Emad-Eldin-G
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/34279#comment:1>

Django

unread,
Jan 22, 2023, 2:21:45 PM1/22/23
to django-...@googlegroups.com
#34279: Certain character causes django admin to misfunction
-------------------------------------+-------------------------------------
Reporter: Emad Gasser | Owner: Emad
| Gasser
Type: Bug | Status: closed

Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Normal | Resolution: invalid

Keywords: Django-admin, | Triage Stage:
field-help_text, models, admin, | Unreviewed
orm |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* status: assigned => closed
* resolution: => invalid
* severity: Release blocker => Normal


Comment:

This is a usage mistake. Per the documentation for
[https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.Field.help_text
Field.help_text]:

Note that this value is not HTML-escaped in automatically-generated
forms. This lets you include HTML in help_text if you so desire. .. you
can use plain text and `django.utils.html.escape()` to escape any HTML
special characters.

--
Ticket URL: <https://code.djangoproject.com/ticket/34279#comment:2>

Reply all
Reply to author
Forward
0 new messages