Commit 5e02f015 by Xavier Ordoquy

Better fix for the Django 1.3 compat

parent 59d0a038
...@@ -17,7 +17,7 @@ class Response(SimpleTemplateResponse): ...@@ -17,7 +17,7 @@ class Response(SimpleTemplateResponse):
arbitrary media types. arbitrary media types.
""" """
# TODO: remove that once Django 1.3 isn't supported # 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'] rendering_attrs = SimpleTemplateResponse.rendering_attrs + ['_closable_objects']
def __init__(self, data=None, status=200, def __init__(self, data=None, status=200,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment