From: Daniel Axtens Date: Tue, 9 Aug 2016 04:55:20 +0000 (+1000) Subject: settings: only enable the REST framework for Django 1.7+ X-Git-Tag: v2.0.0-rc1~285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22bfc1e7a06b323c2659aba1e86515db8f63637e;p=thirdparty%2Fpatchwork.git settings: only enable the REST framework for Django 1.7+ This helps with tox tests for Django 1.6 Signed-off-by: Daniel Axtens Reviewed-by: Stephen Finucane --- diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py index 82af7e51..1ba46f48 100644 --- a/patchwork/settings/dev.py +++ b/patchwork/settings/dev.py @@ -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