#29426 closed Cleanup/optimization (fixed)
UUID fields display poorly in the admin
Reported by: | Aymeric Augustin | Owned by: | mackong |
---|---|---|---|
Component: | Forms | Version: | 2.0 |
Severity: | Normal | Keywords: | uuid |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | yes | UI/UX: | no |
Description
As shown in the attached screenshot:
- The text input for a UUID field in the admin is too narrow to display the entire UUID. Adding
class="vTextField"
solves the issue — even though that doesn't sound like the greatest semantic markup. - I would find it more readable if the admin showed UUIDs with dashes, like
str(uuid)
in Python. (Depending on what's need to make that change, it may raise backwards compatibility questions.)
The second screenshot shows what I'd like the field to look like.
Attachments (2)
Change History (11)
Changed 3 years ago by
Attachment: | Capture d’écran 2018-05-21 à 21.16.07.png added |
---|
Changed 3 years ago by
Attachment: | Capture d’écran 2018-05-21 à 21.19.07.png added |
---|
comment:1 Changed 3 years ago by
Component: | contrib.admin → Forms |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 Changed 3 years ago by
Has patch: | set |
---|
comment:3 Changed 3 years ago by
We can add class="vTextField" to sole this issue.
Version 0, edited 3 years ago
by
(next)
comment:4 Changed 3 years ago by
@mackong Please claim this ticket per https://docs.djangoproject.com/en/2.1/internals/contributing/writing-code/submitting-patches/#claiming-tickets if you've created a patch.
comment:5 Changed 3 years ago by
Owner: | changed from nobody to mackong |
---|---|
Status: | new → assigned |
comment:6 Changed 3 years ago by
Patch needs improvement: | set |
---|
Note: See
TracTickets for help on using
tickets.
https://github.com/django/django/pull/9972 submitted.