simonw/django-openid — Issue #14: Incompatibility with Django 1.3 TemplateResponse object
Author: vdboor
Created: 2011-10-12 12:51:52+00:00
State: open

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.responses.TemplateResponse`.

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