diff options
| author | Xavier Ordoquy | 2014-07-29 10:30:08 +0200 | 
|---|---|---|
| committer | Xavier Ordoquy | 2014-07-29 10:30:08 +0200 | 
| commit | 5e02f015b81bd743f6ee78f8414eca4e93eaab82 (patch) | |
| tree | 836a7329756a19cb338f485292747e37b0a75afb /rest_framework/response.py | |
| parent | 59d0a0387d907260ef8f91bbbca618831abd75a3 (diff) | |
| download | django-rest-framework-5e02f015b81bd743f6ee78f8414eca4e93eaab82.tar.bz2 | |
Better fix for the Django 1.3 compat
Diffstat (limited to 'rest_framework/response.py')
| -rw-r--r-- | rest_framework/response.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/rest_framework/response.py b/rest_framework/response.py index 3928ca91..5c02ea50 100644 --- a/rest_framework/response.py +++ b/rest_framework/response.py @@ -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, | 
