#12292: render_to_response method on AdminSite and ModelAdmin -------------------------------------------+-------------------------------- Reporter: LeafStorm | Owner: nobody Status: closed | Milestone: Component: django.contrib.admin | Version: SVN Resolution: wontfix | Keywords: Stage: Unreviewed | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------------+-------------------------------- Comment (by slurms):
I kind of saw it as a neat way to add some extra context to a {{{ModelAdmin}}}.. you could do: {{{ class FooAdmin(admin.ModelAdmin): def render_to_response(request, template, context): context.update({'foo': 'bar'}) return super(FooAdmin, self).render_to_response(request, template, context) }}} -- Ticket URL: <http://code.djangoproject.com/ticket/12292#comment:2> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.