- 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.
--
Ticket URL: <https://code.djangoproject.com/ticket/29426>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "Capture d’écran 2018-05-21 à 21.16.07.png" added.
* Attachment "Capture d’écran 2018-05-21 à 21.19.07.png" added.
* component: contrib.admin => Forms
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:1>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/9972] submitted.
--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:2>
* owner: nobody => oliver
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:3>
* owner: oliver => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:4>
Comment (by Anurag Lal):
We can add class="vTextField" to sole this issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:3>
Comment (by Bartosz Grabski):
@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.
--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:4>
* owner: nobody => mackong
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:5>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:6>
Comment (by Tim Graham <timograham@…>):
In [changeset:"838d6dcb865ada45258a1af7e2753df523cb201d" 838d6dc]:
{{{
#!CommitTicketReference repository=""
revision="838d6dcb865ada45258a1af7e2753df523cb201d"
Refs #29426 -- Made UUIDField render values with dashes.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:7>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"c832885a3e8659d4a704bf103d523b610c24e4ec" c832885]:
{{{
#!CommitTicketReference repository=""
revision="c832885a3e8659d4a704bf103d523b610c24e4ec"
Fixed #29426 -- Made UUID inputs in the admin match the width of a UUID.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:8>
Comment (by Tim Graham <timograham@…>):
In [changeset:"3509fb54bbc5d0616df1d325ea378fdd8c340418" 3509fb54]:
{{{
#!CommitTicketReference repository=""
revision="3509fb54bbc5d0616df1d325ea378fdd8c340418"
Refs #29426 -- Fixed typo in docs/releases/2.2.txt.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:9>