]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
settings: only enable the REST framework for Django 1.7+
authorDaniel Axtens <dja@axtens.net>
Tue, 9 Aug 2016 04:55:20 +0000 (14:55 +1000)
committerStephen Finucane <stephenfinucane@hotmail.com>
Sun, 21 Aug 2016 16:00:00 +0000 (17:00 +0100)
This helps with tox tests for Django 1.6

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Stephen Finucane <stephenfinucane@hotmail.com>
patchwork/settings/dev.py

index 82af7e51d4ff1016fb22998d226e2db1c4adec82..1ba46f48509c9be3129765f984a527169a721145 100644 (file)
@@ -89,4 +89,5 @@ if django.VERSION >= (1, 7):
 
 ENABLE_XMLRPC = True
 
-ENABLE_REST_API = True
+if django.VERSION >= (1,7):
+    ENABLE_REST_API = True