Permalink
Browse files

BACKWARD-INCOMPATIBLE: Dropping Django 1.2 support.

  • Loading branch information...
1 parent d1bf2dd commit 651f9642674b100569901e88cf5b4452c50b22dd @toastdriven toastdriven committed Aug 4, 2012
Showing with 5 additions and 43 deletions.
  1. +1 −0 BACKWARDS-INCOMPATIBLE.txt
  2. +2 −2 README.rst
  3. +2 −2 docs/index.rst
  4. +0 −20 tests/core/tests/resources.py
  5. +0 −19 tox.ini
@@ -1,2 +1,3 @@
[2012-05-04] AutoFields will now serialize and deserialize as Integers
[2012-06-26] ``Authentication`` classes now require ``User.is_active = True``
+[2012-08-04] The addition of ``SessionAuthentication`` requires Django 1.3+
View
@@ -14,8 +14,8 @@ Requirements
Required
--------
-* Python 2.5+
-* Django 1.2+
+* Python 2.6+
+* Django 1.3+
* mimeparse 0.1.3+ (http://code.google.com/p/mimeparse/)
* Older versions will work, but their behavior on JSON/JSONP is a touch wonky.
View
@@ -87,8 +87,8 @@ the necessary bits via the included ``requirements.txt``:
Required
--------
-* Python 2.5+
-* Django 1.2+
+* Python 2.6+
+* Django 1.3+
* mimeparse 0.1.3+ (http://code.google.com/p/mimeparse/)
* Older versions will work, but their behavior on JSON/JSONP is a touch wonky.
@@ -30,26 +30,6 @@
from core.utils import SimpleHandler
-if not hasattr(HttpRequest, '_load_post_and_files'):
- from django.utils.datastructures import MultiValueDict
- from django.http import QueryDict
-
- # An HttpRequest that implements _load_post_and_files
- # for Django 1.2 compatibility
- class HttpRequest(HttpRequest):
- @property
- def raw_post_data(self):
- return self._raw_post_data
-
- def _load_post_and_files(self):
- # Populates self._post and self._files
- if self.method != 'POST':
- self._post, self._files = QueryDict('', encoding=self._encoding), MultiValueDict()
- return
- else:
- self._post, self._files = QueryDict(self.raw_post_data, encoding=self._encoding), MultiValueDict()
-
-
class CustomSerializer(Serializer):
pass
View
19 tox.ini
@@ -16,7 +16,6 @@ commands =
deps =
-r{toxinidir}/tests/requirements.txt
- django==1.2.7
[testenv:py26-dev]
basepython = python2.6
@@ -66,24 +65,6 @@ deps =
-r{toxinidir}/tests/requirements.txt
django==1.3.1
-[testenv:py25]
-basepython = python2.5
-deps =
- -r{toxinidir}/tests/requirements_25.txt
- django==1.2.7
-
-[testenv:py26]
-basepython = python2.6
-deps =
- -r{toxinidir}/tests/requirements.txt
- django==1.2.7
-
-[testenv:py27]
-basepython = python2.7
-deps =
- -r{toxinidir}/tests/requirements.txt
- django==1.2.7
-
[testenv:docs]
changedir = docs
deps =

0 comments on commit 651f964

Please sign in to comment.