#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.