- 01 Aug, 2014 1 commit
-
-
Django's `HttpResponse` class checks for the `status` param when it's initialized, if it's `None` it uses the class attribute `status_code` and thanks to that we can do things like: ``` class BadRequest(HttpResponse): status_code = 400 ``` Now, that doesn't work when inheriting from rest-framework's `Response`: ``` class BadRequest(rest_framework.response.Response): status_code = 400 # Bad, it's always ignored ``` Because a default status of `200` is being specified in `rest_framework.response.Response`. I think is more Django-friendly to just leave that status default value to `None` and leave the responsibility of choosing its value to the parent class: `HttpResponse`.
Anler Hp committed
-
- 31 Jul, 2014 5 commits
-
-
Tom Christie committed
-
Updated Permissions doc link to Django docs
Xavier Ordoquy committed -
The previous link went to version 1 docs so it was a dead link.
Kevin London committed -
Tom Christie committed
- 30 Jul, 2014 1 commit
-
-
Tom Christie committed
-
- 29 Jul, 2014 4 commits
-
-
Django & Django guardian updates
Xavier Ordoquy committed -
Xavier Ordoquy committed
-
Xavier Ordoquy committed
-
Xavier Ordoquy committed
-
- 28 Jul, 2014 4 commits
-
-
Xavier Ordoquy committed
-
Xavier Ordoquy committed
-
Xavier Ordoquy committed
-
Xavier Ordoquy committed
-
- 26 Jul, 2014 1 commit
-
-
Sending "Bearer" and "Bearer " resulted in a 500.
Tom Christie committed
-
- 25 Jul, 2014 2 commits
- 22 Jul, 2014 1 commit
-
-
Update fields.md
Tom Christie committed
-
- 20 Jul, 2014 2 commits
-
-
Tom Christie committed
- 18 Jul, 2014 9 commits
-
-
Tom Christie committed
-
Tom Christie committed
-
Tom Christie committed
-
Tom Christie committed
-
Tom Christie committed
-
Tom Christie committed
-
Tom Christie committed
-
Tom Christie committed
-
Tom Christie committed
-
- 17 Jul, 2014 3 commits
-
-
Tom Christie committed
-
Tom Christie committed
-
obj.__class__ will return the actual Class object, we want to serialise a string (accessed with obj.__class__.__name__)
Dave King committed
-
- 15 Jul, 2014 1 commit
-
-
Tom Christie committed
-
- 07 Jul, 2014 2 commits
-
-
Tom Christie committed
-
Tom Christie committed
-
- 01 Jul, 2014 1 commit
-
-
Tom Christie committed
-
- 27 Jun, 2014 3 commits
-
-
Modelserialization charfield with null
Tom Christie committed -
Serhiy Voyt committed
-
Fixes #1651. Add link to drf-extensions nested routers to docs
Tom Christie committed
-