Better fix for the Django 1.3 compat

This commit is contained in:
Xavier Ordoquy 2014-07-29 10:30:08 +02:00
parent 59d0a0387d
commit 5e02f015b8

View File

@ -17,7 +17,7 @@ class Response(SimpleTemplateResponse):
arbitrary media types.
"""
# TODO: remove that once Django 1.3 isn't supported
if django.VERSION > (1, 3):
if django.VERSION >= (1, 4):
rendering_attrs = SimpleTemplateResponse.rendering_attrs + ['_closable_objects']
def __init__(self, data=None, status=200,