Opened 7 years ago

Closed 7 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: UI/UX:

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)

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

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by lowshoe

Patch for django/contrib/admin/options.py

comment:1 Changed 7 years ago by brosner

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

This is a subset of the changes in #6241.

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