#17006 closed Cleanup/optimization (fixed)
Document ModelAdmin's get_form() and get_formsets()
Reported by: | rasca | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | admin |
Cc: | timograham@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
They are really useful but right now their api isn't exposed or documented.
Attachments (2)
Change History (10)
comment:1 by , 13 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Type: | Bug → Cleanup/optimization |
comment:3 by , 12 years ago
SmileyChris pointed me to this bug in the IRC channel, we were talking about the ModelAdmin. A quick read through the source didn't find any get_form() for ModelForm either, so here's a trivial patch against the ModelAdmin docs to include get_form().
I would have added get_formsets() but it's undocumented in the source and I'm not really familiar with formsets.
by , 12 years ago
Attachment: | modeladmin_get_form.patch added |
---|
comment:4 by , 12 years ago
Keywords: | admin added |
---|---|
Summary: | Document ModelForm's get_form() and get_formsets() → Document ModelAdmin's get_form() and get_formsets() |
by , 12 years ago
Attachment: | 17006.diff added |
---|
comment:5 by , 12 years ago
Cc: | added |
---|---|
Has patch: | set |
comment:6 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Good idea! See also #16841.