mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 13:04:03 +03:00
Better fix for the Django 1.3 compat
This commit is contained in:
parent
59d0a0387d
commit
5e02f015b8
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user