[Django] #29426: UUID fields display poorly in the admin

15 views
Skip to first unread message

Django

unread,
May 21, 2018, 3:21:10 PM5/21/18
to django-...@googlegroups.com
#29426: UUID fields display poorly in the admin
------------------------------------------------+------------------------
Reporter: Aymeric Augustin | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.admin | Version: 2.0
Severity: Normal | Keywords: uuid
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
------------------------------------------------+------------------------
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.

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

Django

unread,
May 21, 2018, 3:21:38 PM5/21/18
to django-...@googlegroups.com
#29426: UUID fields display poorly in the admin
-------------------------------------+-------------------------------------

Reporter: Aymeric Augustin | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: contrib.admin | Version: 2.0
Severity: Normal | Resolution:

Keywords: uuid | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Aymeric Augustin):

* Attachment "Capture d’écran 2018-05-21 à 21.16.07.png" added.

Django

unread,
May 21, 2018, 3:21:47 PM5/21/18
to django-...@googlegroups.com
#29426: UUID fields display poorly in the admin
-------------------------------------+-------------------------------------

Reporter: Aymeric Augustin | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: contrib.admin | Version: 2.0
Severity: Normal | Resolution:

Keywords: uuid | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Aymeric Augustin):

* Attachment "Capture d’écran 2018-05-21 à 21.19.07.png" added.

Django

unread,
May 21, 2018, 4:26:17 PM5/21/18
to django-...@googlegroups.com
#29426: UUID fields display poorly in the admin
--------------------------------------+------------------------------------

Reporter: Aymeric Augustin | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Forms | Version: 2.0
Severity: Normal | Resolution:
Keywords: uuid | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Claude Paroz):

* component: contrib.admin => Forms
* stage: Unreviewed => Accepted


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

Django

unread,
May 22, 2018, 3:43:44 AM5/22/18
to django-...@googlegroups.com
#29426: UUID fields display poorly in the admin
--------------------------------------+------------------------------------

Reporter: Aymeric Augustin | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Forms | Version: 2.0
Severity: Normal | Resolution:
Keywords: uuid | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by mackong):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/9972] submitted.

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

Django

unread,
May 22, 2018, 10:56:49 PM5/22/18
to django-...@googlegroups.com
#29426: UUID fields display poorly in the admin
--------------------------------------+------------------------------------
Reporter: Aymeric Augustin | Owner: oliver
Type: Cleanup/optimization | Status: assigned

Component: Forms | Version: 2.0
Severity: Normal | Resolution:
Keywords: uuid | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by oliver):

* owner: nobody => oliver
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:3>

Django

unread,
May 23, 2018, 1:03:35 AM5/23/18
to django-...@googlegroups.com
#29426: UUID fields display poorly in the admin
--------------------------------------+------------------------------------
Reporter: Aymeric Augustin | Owner: (none)
Type: Cleanup/optimization | Status: new

Component: Forms | Version: 2.0
Severity: Normal | Resolution:
Keywords: uuid | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by oliver):

* owner: oliver => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:4>

Django

unread,
May 23, 2018, 2:33:33 PM5/23/18
to django-...@googlegroups.com
#29426: UUID fields display poorly in the admin
--------------------------------------+------------------------------------

Reporter: Aymeric Augustin | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Forms | Version: 2.0
Severity: Normal | Resolution:
Keywords: uuid | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by Anurag Lal):

We can add class="vTextField" to sole this issue.

--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:3>

Django

unread,
May 26, 2018, 3:50:15 AM5/26/18
to django-...@googlegroups.com
#29426: UUID fields display poorly in the admin
--------------------------------------+------------------------------------

Reporter: Aymeric Augustin | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Forms | Version: 2.0
Severity: Normal | Resolution:
Keywords: uuid | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

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>

Django

unread,
May 27, 2018, 1:30:15 AM5/27/18
to django-...@googlegroups.com
#29426: UUID fields display poorly in the admin
--------------------------------------+------------------------------------
Reporter: Aymeric Augustin | Owner: mackong
Type: Cleanup/optimization | Status: assigned

Component: Forms | Version: 2.0
Severity: Normal | Resolution:
Keywords: uuid | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by mackong):

* owner: nobody => mackong


* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:5>

Django

unread,
Jun 8, 2018, 6:11:17 AM6/8/18
to django-...@googlegroups.com
#29426: UUID fields display poorly in the admin
--------------------------------------+------------------------------------
Reporter: Aymeric Augustin | Owner: mackong
Type: Cleanup/optimization | Status: assigned
Component: Forms | Version: 2.0
Severity: Normal | Resolution:
Keywords: uuid | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Carlton Gibson):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/29426#comment:6>

Django

unread,
Aug 18, 2018, 8:39:40 AM8/18/18
to django-...@googlegroups.com
#29426: UUID fields display poorly in the admin
--------------------------------------+------------------------------------
Reporter: Aymeric Augustin | Owner: mackong
Type: Cleanup/optimization | Status: assigned
Component: Forms | Version: 2.0
Severity: Normal | Resolution:
Keywords: uuid | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

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>

Django

unread,
Aug 18, 2018, 10:16:48 AM8/18/18
to django-...@googlegroups.com
#29426: UUID fields display poorly in the admin
--------------------------------------+------------------------------------
Reporter: Aymeric Augustin | Owner: mackong
Type: Cleanup/optimization | Status: closed
Component: Forms | Version: 2.0
Severity: Normal | Resolution: fixed

Keywords: uuid | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):

* 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>

Django

unread,
Aug 31, 2018, 10:23:14 AM8/31/18
to django-...@googlegroups.com
#29426: UUID fields display poorly in the admin
--------------------------------------+------------------------------------
Reporter: Aymeric Augustin | Owner: mackong
Type: Cleanup/optimization | Status: closed
Component: Forms | Version: 2.0
Severity: Normal | Resolution: fixed
Keywords: uuid | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages