@@ -21,9 +21,9 @@ within the framework. That is the purpose of this project.
Requirements
------------
-* Python (2.6, 2.7 and 3.3)
+* Python 2.7+
* Django 1.3+
-* Django REST Framework >= 2.2.5 (when bulk features were added to serializers), < 3.0
+* Django REST Framework >= 2.2.5 (when bulk features were added to serializers)
Installing
----------
@@ -1,2 +1,2 @@
django
-djangorestframework<3
+djangorestframework
@@ -0,0 +1 @@
+from __future__ import print_function, unicode_literals
@@ -0,0 +1,12 @@
+import rest_framework
+
+# import appropriate mixins depending on the DRF version
+# this allows to maintain clean code for each DRF version
+# without doing any magic
+# a little more code but a lit clearer what is going on
+if str(rest_framework.__version__).startswith('2'):
+ from .drf2.mixins import * # noqa
+else:
+ from .drf3.mixins import * # noqa