Opened 15 years ago
Closed 14 years ago
#11250 closed (fixed)
InlineModelAdmin with can_delete
Reported by: | tangc | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Keywords: | InlineModelAdmin, can_delete | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Let can_delete be configurable, such as:
class NodeDetailInline(admin.TabularInline): model = NodeDetail extra = 3 max_num = 3 can_delete = False
Attachments (2)
Change History (6)
by , 15 years ago
Attachment: | options.diff added |
---|
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 15 years ago
Component: | Uncategorized → django.contrib.admin |
---|---|
Version: | 1.0 → SVN |
comment:3 by , 15 years ago
Has patch: | set |
---|
by , 15 years ago
Attachment: | admin_can_delete.diff added |
---|
comment:4 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This has been fixed, I believe by r12533.
Note:
See TracTickets
for help on using tickets.
This is pretty much a duplicate of #8341, which brosner fixed by making subclassing easier, but nonetheless it's something I've wanted enough times as a simple attribute in TabularInline that I think it's worth considering for inclusion. Patch attached with necessary changes to tests and docs.