1. 01 Aug, 2014 1 commit
    • Leave status responsibility to parent class · ebcc78d9
      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
  2. 31 Jul, 2014 5 commits
  3. 30 Jul, 2014 1 commit
  4. 29 Jul, 2014 4 commits
  5. 28 Jul, 2014 4 commits
  6. 26 Jul, 2014 1 commit
  7. 25 Jul, 2014 2 commits
  8. 22 Jul, 2014 1 commit
  9. 20 Jul, 2014 2 commits
  10. 18 Jul, 2014 9 commits
  11. 17 Jul, 2014 3 commits
  12. 15 Jul, 2014 1 commit
  13. 07 Jul, 2014 2 commits
  14. 01 Jul, 2014 1 commit
  15. 27 Jun, 2014 3 commits