Ticket #7757: options.py.patch

File options.py.patch, 615 bytes (added by Rozza, 16 years ago)

Passes the form_url to render_change_form method

  • django/contrib/admin/options.py

     
    540540            'root_path': self.admin_site.root_path,
    541541        }
    542542        context.update(extra_context or {})
    543         return self.render_change_form(request, context, add=True)
     543        return self.render_change_form(request, context, add=True, form_url=form_url)
    544544
    545545    def change_view(self, request, object_id, extra_context=None):
    546546        "The 'change' admin view for this model."
Back to Top