Re: Creating AdminSite-level render_to_response method

2009-11-30 Thread Leaf
I have posted a patch implementing this to ticket number #12292 (http://code.djangoproject.com/ticket/12292). -- Leaf -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com.

Creating AdminSite-level render_to_response method

2009-11-30 Thread Leaf
Currently, AdminSites and ModelAdmins have this idiom at the end of 'view' methods: context_instance = RequestContext(request, current_app=(self.name or self.admin_site.name)) return render_to_response(template_names, context, context_instance) I would like to suggest creating a 'render_to_respon