aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/views.py
AgeCommit message (Collapse)Author
2015-02-06Upgrade pending deprecations to deprecationsTom Christie
2015-01-31Fix error text in test.Tom Christie
2015-01-30Add built-in translations.Tom Christie
2014-12-16Versioning first passTom Christie
2014-12-14Update excepteion_handler signatureJosé Padilla
2014-12-14Add get_exception_handler_context()José Padilla
2014-12-14Reuse exception_handler variable throughoutJosé Padilla
2014-12-14Add pending deprecation warning messageJosé Padilla
2014-12-13Support handlers with and without contextJosé Padilla
2014-12-13Add context to exception handler #2236José Padilla
Same context as renderers which include: the view, args, kwargs, and request. This provides enough contextual information to the exception handlers to handle errors better. In a use case like #1671, a custom handler would allow Sentry to log the request properly.
2014-12-04Removed custom StringIO, force_text, smart_text compatTymur Maryokhin
2014-10-10exceptions.ValidationFailed, not Django's ValidationErrorTom Christie
2014-10-03Minor: fix spelling and grammar, mostly in 3.0 announcementCraig de Stigter
2014-09-24OPTIONS supportTom Christie
2014-09-12NON_FIELD_ERRORS_KEY settingTom Christie
2014-09-11Throttles now use Retry-After header and no longer support the custom styleTom Christie
2014-09-11Merge masterTom Christie
2014-09-08More test sortingTom Christie
2014-09-03Alter CSRF exemption implementationPiper Merriam
The previous implementation of decorating `APIView.dispach` with the `csrf_exempt` decorator allowed for an easy-to-make mistake where someone could override the `dispatch` method on a view and inadvertantly remove the csrf exemption of their api view. By moving the decoration of the view into the `as_view` logic, it becomes much more difficult to make this mistake.
2014-08-20Merge branch 'master' into set-retry-afterDmitry Mukhin
Conflicts: tests/test_throttling.py
2014-08-19Code linting and added runtests.pyTom Christie
2014-04-07set Retry-After header when throttledDmitry Mukhin
2014-03-04Typo in keywords arguments nameDavid Larlet
Because it matters ;)
2014-03-01In the method permission_denied, did not use the request parameter.hongfeiZhang
2014-01-30Only add 'Vary: Accept' header when there is more than one possible renderer.Tom Christie
2014-01-30Remove TODO note, since it hasn't been TODONE.Tom Christie
2013-10-24Update comment in `get_parser_context`.Tom Christie
2013-09-06Support customizable view EXCEPTION_HANDLERAndy Freeland
Add `api_settings.EXCEPTION_HANDLER` to support custom error responses. Fixes #907.
2013-08-27Use view.settings for API settings, to make testing easier.Tom Christie
2013-08-27Move exception handler out of main viewTom Christie
2013-08-19Document customizable view names/descriptionsTom Christie
2013-08-19Move view name/description functions into public spaceTom Christie
2013-08-17Improved view/description function settingChristopher Paolini
Now supports each View having its own name and description function and overriding the global default.
2013-08-13don't set X-Throttle-Wait-Second header if throttle wait is NoneJeremy Satterfield
2013-06-21Add support for StreamingHttpResponse. Closes #939Tom Christie
2013-06-07Set the args and kwargs before initializing the request.Ethan Fremen
Allows get_parser_context to function correctly. Signed-off-by: Ethan Fremen <ethan@matterport.com>
2013-06-06Never deepcopy validators. Closes #913Tom Christie
2013-05-24Clean up OPTIONS implementationTom Christie
2013-05-23simplified, moved field humanizing to Field. broken testsOscar Vilaplana
2013-05-19fixed tests, added docs, renamed helper methodOscar Vilaplana
2013-05-19Merge remote-tracking branch 'grimborg/issue-192-expose-fields-for-options' ↵Nikolaus Schlemm
into issue-192-expose-fields-for-options
2013-05-19Added tests, cleaned up importsOscar Vilaplana
2013-05-19use double quotes for docstring instead of single quotesNikolaus Schlemm
2013-05-19don't expose fields for GET and DELETE - leaving room for parameters like ↵Nikolaus Schlemm
e.g. filter or paginate
2013-05-19WORKAROUND: avoid errors like "AttributeError: 'APIRoot' object has no ↵Nikolaus Schlemm
attribute 'get_serializer'"
2013-05-19Integrated status quo of grimborg's awesome humanize_field() for exposing ↵Nikolaus Schlemm
field metadata via OPTIONS :)
2013-05-18Merge branch 'issue-192-expose-fields-for-options' of ↵Nikolaus Schlemm
git://github.com/grimborg/django-rest-framework into issue-192-expose-fields-for-options Conflicts: rest_framework/tests/fields.py
2013-05-18Added humanized field names and typesOscar Vilaplana
2013-05-18HEAD and OPTIONS should not be exposed as actions as discussed in ↵Nikolaus Schlemm
https://github.com/nschlemm/django-rest-framework/commit/a42afa04c38afe25c9032b8ce37b572678b02cf1#commitcomment-3241476
2013-05-18only catch relevant exceptions ;)Nikolaus Schlemm