Ticket #34365: change_form_template.patch

File change_form_template.patch, 554 bytes (added by Xander, 21 months ago)

Patch file

  • django/contrib/admin/options.py

    diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
    index 1e08458fe1..499e07cf12 100644
    a b class ModelAdmin(BaseModelAdmin):  
    13051305        )
    13061306        if add and self.add_form_template is not None:
    13071307            form_template = self.add_form_template
    1308         else:
     1308        elif change and self.change_form_template is not None:
    13091309            form_template = self.change_form_template
    13101310
    13111311        request.current_app = self.admin_site.name
Back to Top