#8341 closed Uncategorized (fixed)
InlineModelAdmin is missing `can_delete` and `can_order`
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | dev@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
InlineModelAdmin
causes one to override whole function (get_formset
) because it is missing, can_delete
and can_order
from the inlineformset_factory
call.
P.S. Not related to this patch: Also there should be ability to give different form for change_view
and add_view
without such a big overriding.
Attachments (2)
Change History (6)
by , 16 years ago
Attachment: | options.py added |
---|
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
I have been meaning to add this in, but would rather do it in a subclass fashion to help prevent a million options at class-level. Some options there make sense, but more some more very formset specific bits need to be done by subclassing and providing your own kwargs to the factory function. Also your P.S, first, has nothing to do with this ticket and, two, you don't need to do "such big overriding" as the documentation clearly states you can use a form
option on the
ModelAdmin
and
InlineModelAdmin
. See http://www.djangoproject.com/documentation/admin/#form
comment:2 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 12 years ago
Cc: | added |
---|---|
Easy pickings: | unset |
Severity: | → Normal |
Type: | → Uncategorized |
UI/UX: | unset |
Addition of can_delete and can_order