Re: [Django] #36554: When the object __str__ is long, the object title is truncated in TabularInline.

9 views
Skip to first unread message

Django

unread,
Aug 15, 2025, 3:54:39 AMAug 15
to django-...@googlegroups.com
#36554: When the object __str__ is long, the object title is truncated in
TabularInline.
-------------------------------+------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.2
Severity: Normal | Resolution:
Keywords: inline | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------+------------------------------------
Changes (by Antoliny):

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

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

Django

unread,
Aug 15, 2025, 4:06:00 AMAug 15
to django-...@googlegroups.com
#36554: When the object __str__ is long, the object title is truncated in
TabularInline.
-------------------------------+------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.2
Severity: Normal | Resolution:
Keywords: inline | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------+------------------------------------
Comment (by Antoliny):

Replying to [comment:5 Sarah Boyce]:
> I think the title can have a "..." when truncating so that folks know
that the title has been truncated and the change button should always be
available

If we could solve the problem in the most ideal way, it would be to show
the entire title text, right?
I’m concerned that using truncation, especially with mobile sizes in mind,
might result in showing too little of the title.
--
Ticket URL: <https://code.djangoproject.com/ticket/36554#comment:7>

Django

unread,
Aug 15, 2025, 4:33:29 AMAug 15
to django-...@googlegroups.com
#36554: When the object __str__ is long, the object title is truncated in
TabularInline.
-------------------------------+------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.2
Severity: Normal | Resolution:
Keywords: inline | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------+------------------------------------
Comment (by Sarah Boyce):

I suppose it should be consistent with other titles, such as for
StackedInline
--
Ticket URL: <https://code.djangoproject.com/ticket/36554#comment:8>

Django

unread,
Aug 15, 2025, 5:51:00 AMAug 15
to django-...@googlegroups.com
#36554: When the object __str__ is long, the object title is truncated in
TabularInline.
-------------------------------+------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.2
Severity: Normal | Resolution:
Keywords: inline | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------+------------------------------------
Comment (by Antoliny):

Replying to [comment:8 Sarah Boyce]:
> I suppose it should be consistent with other titles, such as for
StackedInline

This is a post I wrote on the forum a while ago. If you have some time,
could you take a look at it?
How about solving it using this approach?

https://forum.djangoproject.com/t/improving-consistency-and-accessibility-
between-tabularinline-and-stackedinline/37951/2

If we adopt this approach, I think we would only need to adjust the
position of the `View On Site` link.
--
Ticket URL: <https://code.djangoproject.com/ticket/36554#comment:9>

Django

unread,
Aug 17, 2025, 1:50:23 AMAug 17
to django-...@googlegroups.com
#36554: When the object __str__ is long, the object title is truncated in
TabularInline.
-------------------------------+------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.2
Severity: Normal | Resolution:
Keywords: inline | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------+------------------------------------
Changes (by Antoliny):

* has_patch: 0 => 1

Comment:

[https://github.com/django/django/pull/19737 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/36554#comment:10>

Django

unread,
Aug 28, 2025, 7:34:54 AMAug 28
to django-...@googlegroups.com
#36554: When the object __str__ is long, the object title is truncated in
TabularInline.
-------------------------------+------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.2
Severity: Normal | Resolution:
Keywords: inline | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 1
-------------------------------+------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/36554#comment:11>

Django

unread,
Aug 30, 2025, 5:49:13 AMAug 30
to django-...@googlegroups.com
#36554: When the object __str__ is long, the object title is truncated in
TabularInline.
-------------------------------+------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: Bug | Status: assigned
Component: contrib.admin | Version: 5.2
Severity: Normal | Resolution:
Keywords: inline | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------+------------------------------------
Changes (by Antoliny):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/36554#comment:12>
Reply all
Reply to author
Forward
0 new messages