Opened 16 years ago

Closed 16 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


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)

options.diff (1.0 KB ) - added by lowshoe 16 years ago.
Patch for django/contrib/admin/

Download all attachments as: .zip

Change History (2)

by lowshoe, 16 years ago

Attachment: options.diff added

Patch for django/contrib/admin/

comment:1 by Brian Rosner, 16 years ago

Resolution: duplicate
Status: newclosed

This is a subset of the changes in #6241.

Note: See TracTickets for help on using tickets.
Back to Top