[Django] #36069: When can_delete is set to False in TabularInline, the position of the remove (X) button for the InlineForm is different.

4 views
Skip to first unread message

Django

unread,
Jan 7, 2025, 6:14:18 AM1/7/25
to django-...@googlegroups.com
#36069: When can_delete is set to False in TabularInline, the position of the
remove (X) button for the InlineForm is different.
-------------------------------+-----------------------------------------
Reporter: Antoliny | Type: Bug
Status: new | Component: contrib.admin
Version: dev | Severity: Normal
Keywords: TabularInline | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+-----------------------------------------
{{{
class CommentInline(admin.TabularInline):
model = Comment
extra = 1
can_delete = False

class TagInline(admin.TabularInline):
model = Tag
extra = 1


class PostAdmin(admin.ModelAdmin):
inlines = [CommentInline, TagInline]
}}}
When can_delete is set to False in TabularInline, remove button of the
InlineForm moves to the bottom (it should be at the top originally).
[[Image(tabular_inline_delete_button.png)]]
--
Ticket URL: <https://code.djangoproject.com/ticket/36069>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 7, 2025, 6:14:29 AM1/7/25
to django-...@googlegroups.com
#36069: When can_delete is set to False in TabularInline, the position of the
remove (X) button for the InlineForm is different.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: (none)
Type: Bug | Status: new
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: TabularInline | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* Attachment "tabular_inline_delete_button.png" added.

Django

unread,
Jan 7, 2025, 6:14:44 AM1/7/25
to django-...@googlegroups.com
#36069: When can_delete is set to False in TabularInline, the position of the
remove (X) button for the InlineForm is different.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: Bug | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: TabularInline | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

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

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