simonw / django-openid

A modern library for integrating OpenID with Django - incomplete, but really nearly there (promise)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incompatibility with Django 1.3 TemplateResponse object

vdboor opened this issue · comments

Hi,

When using django_openid in a Django 1.3 project, there will be an error with the returned TemplateResponse object.

When the response object has a render() function (as TemplateResponse has), Django 1.3 will call the add_post_render_callback() function of that response. This method is available in django.template.response.TemplateResponse, but not in the copy at django_openid.response.TemplateResponse.
The obvious result is a 500 error, which bit me already quite.

The easy fix is not using an own copy of the TemplateResponse object when using Django 1.3