Ticket #34365: change_form_template.patch
File change_form_template.patch, 554 bytes (added by , 21 months ago) |
---|
-
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): 1305 1305 ) 1306 1306 if add and self.add_form_template is not None: 1307 1307 form_template = self.add_form_template 1308 el se:1308 elif change and self.change_form_template is not None: 1309 1309 form_template = self.change_form_template 1310 1310 1311 1311 request.current_app = self.admin_site.name