#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)
by , 6 years ago
Attachment: | Capture d’écran 2018-05-21 à 21.16.07.png added |
---|
by , 6 years ago
Attachment: | Capture d’écran 2018-05-21 à 21.19.07.png added |
---|
comment:1 by , 6 years ago
Component: | contrib.admin → Forms |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 6 years ago
Has patch: | set |
---|
comment:4 by , 6 years ago
@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 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:6 by , 6 years ago
Patch needs improvement: | set |
---|
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/9972 submitted.