Ticket #7758: options.py.patch
File options.py.patch, 1.0 KB (added by , 16 years ago) |
---|
-
django/contrib/admin/options.py
542 542 context.update(extra_context or {}) 543 543 return self.render_change_form(request, context, add=True) 544 544 545 def change_view(self, request, object_id, extra_context=None):545 def change_view(self, request, object_id, form_url='', extra_context=None): 546 546 "The 'change' admin view for this model." 547 547 model = self.model 548 548 opts = model._meta … … 604 604 'root_path': self.admin_site.root_path, 605 605 } 606 606 context.update(extra_context or {}) 607 return self.render_change_form(request, context, change=True, obj=obj )607 return self.render_change_form(request, context, change=True, obj=obj, form_url=form_url) 608 608 609 609 def changelist_view(self, request, extra_context=None): 610 610 "The 'change list' admin view for this model."