diff options
| -rw-r--r-- | docs/api-guide/permissions.md | 2 | ||||
| -rw-r--r-- | docs/index.md | 2 | ||||
| -rw-r--r-- | docs/template.html | 1 | ||||
| -rw-r--r-- | docs/topics/release-notes.md | 13 | ||||
| -rwxr-xr-x | mkdocs.py | 1 | ||||
| -rw-r--r-- | rest_framework/__init__.py | 2 | ||||
| -rw-r--r-- | rest_framework/throttling.py | 3 | 
7 files changed, 22 insertions, 2 deletions
diff --git a/docs/api-guide/permissions.md b/docs/api-guide/permissions.md index 096ef369..c6372f98 100644 --- a/docs/api-guide/permissions.md +++ b/docs/api-guide/permissions.md @@ -196,7 +196,7 @@ The following third party packages are also available.  ## DRF Any Permissions -The [DRF Any Permissions][drf-any-permissions] packages provides a different permission behavior in contrast to the REST framework.  Only one of the given permissions has to be true in order to get access to the view. +The [DRF Any Permissions][drf-any-permissions] packages provides a different permission behavior in contrast to REST framework.  Instead of all specified permissions being required, only one of the given permissions has to be true in order to get access to the view.  [cite]: https://developer.apple.com/library/mac/#documentation/security/Conceptual/AuthenticationAndAuthorizationGuide/Authorization/Authorization.html  [authentication]: authentication.md diff --git a/docs/index.md b/docs/index.md index 99cd6b88..a0ae2984 100644 --- a/docs/index.md +++ b/docs/index.md @@ -164,6 +164,7 @@ The API guide is your complete reference manual to all the functionality provide  * [Returning URLs][reverse]  * [Exceptions][exceptions]  * [Status codes][status] +* [Testing][testing]  * [Settings][settings]  ## Topics @@ -288,6 +289,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  [reverse]: api-guide/reverse.md  [exceptions]: api-guide/exceptions.md  [status]: api-guide/status-codes.md +[testing]: api-guide/testing.md  [settings]: api-guide/settings.md  [documenting-your-api]: topics/documenting-your-api.md diff --git a/docs/template.html b/docs/template.html index 27bc1062..a20c8111 100644 --- a/docs/template.html +++ b/docs/template.html @@ -89,6 +89,7 @@                    <li><a href="{{ base_url }}/api-guide/reverse{{ suffix }}">Returning URLs</a></li>                    <li><a href="{{ base_url }}/api-guide/exceptions{{ suffix }}">Exceptions</a></li>                    <li><a href="{{ base_url }}/api-guide/status-codes{{ suffix }}">Status codes</a></li> +                  <li><a href="{{ base_url }}/api-guide/testing{{ suffix }}">Testing</a></li>                    <li><a href="{{ base_url }}/api-guide/settings{{ suffix }}">Settings</a></li>                  </ul>                </li> diff --git a/docs/topics/release-notes.md b/docs/topics/release-notes.md index d379ab74..624d9acd 100644 --- a/docs/topics/release-notes.md +++ b/docs/topics/release-notes.md @@ -40,6 +40,19 @@ You can determine your currently installed version using `pip freeze`:  ## 2.3.x series +### 2.3.7 + +**Date**: 16th August 2013 + +* Added `APITestClient`, `APIRequestFactory` and `APITestCase` etc... +* Refactor `SessionAuthentication` to allow esier override for CSRF exemption. +* Remove 'Hold down "Control" message from help_text' widget messaging when not appropriate. +* Added admin configuration for auth tokens. +* Bugfix: `AnonRateThrottle` fixed to not throttle authenticated users. +* Bugfix: Don't set `X-Throttle-Wait-Seconds` when throttle does not have `wait` value. +* Bugfix: Fixed `PATCH` button title in browsable API. +* Bugfix: Fix issue with OAuth2 provider naive datetimes. +  ### 2.3.6  **Date**: 27th June 2013 @@ -69,6 +69,7 @@ path_list = [      'api-guide/reverse.md',      'api-guide/exceptions.md',      'api-guide/status-codes.md', +    'api-guide/testing.md',      'api-guide/settings.md',      'topics/documenting-your-api.md',      'topics/ajax-csrf-cors.md', diff --git a/rest_framework/__init__.py b/rest_framework/__init__.py index 776618ac..087808e0 100644 --- a/rest_framework/__init__.py +++ b/rest_framework/__init__.py @@ -1,4 +1,4 @@ -__version__ = '2.3.6' +__version__ = '2.3.7'  VERSION = __version__  # synonym diff --git a/rest_framework/throttling.py b/rest_framework/throttling.py index f6bb1cc8..65b45593 100644 --- a/rest_framework/throttling.py +++ b/rest_framework/throttling.py @@ -96,6 +96,9 @@ class SimpleRateThrottle(BaseThrottle):              return True          self.key = self.get_cache_key(request, view) +        if self.key is None: +            return True +          self.history = cache.get(self.key, [])          self.now = self.timer()  | 
