Opened 17 years ago
Closed 17 years ago
#6629 closed (duplicate)
change_view does not hand over instance parameter to ModelForm
Reported by: | lowshoe | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | newforms-admin |
Severity: | Keywords: | ModelAdmin, ModelForm, form_change | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
when overwriting form_add and form_change to use a custom ModelForm for a model in admin interface, the change_form is not properly filled with the existing object data. reason is the missing instance-parameter when instantiating the ModelForm inside django.contrib.admin.options.change_view
see patch for details.
Attachments (1)
Change History (2)
by , 17 years ago
Attachment: | options.diff added |
---|
comment:1 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This is a subset of the changes in #6241.
Note:
See TracTickets
for help on using tickets.
Patch for django/contrib/admin/options.py