[PATCH 2/7] dev settings: only enable the REST framework for Django 1.7+

Daniel Axtens dja at axtens.net
Tue Aug 9 14:55:20 AEST 2016


This helps with tox tests for Django 1.6

Signed-off-by: Daniel Axtens <dja at axtens.net>
---
 patchwork/settings/dev.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py
index 99cb72e335cf..b1d2186aacc9 100644
--- a/patchwork/settings/dev.py
+++ b/patchwork/settings/dev.py
@@ -90,4 +90,5 @@ if django.VERSION >= (1, 7):
 
 ENABLE_XMLRPC = True
 
-ENABLE_REST_API = True
+if django.VERSION >= (1,7):
+    ENABLE_REST_API = True
-- 
2.7.4



More information about the Patchwork mailing list