django-rest-framework/rest_framework
Sigve Sebastian Farstad bf0fbd5df1 Catch APIException in doc generation (#5443)
The documentation generator calls view.get_serializer() in order to
inspect it for documentation generation. However, if get_serializer()
throws an APIException (e.g. PermissionDenied), it doesn't get caught at
the call site, but instead propagates up and aborts the entire view.
With the try/except in this commit, the documentation generator instead
gratiously ignores that particular view and moves on to the next one
instead. Practical concequences of this commit is that the docs no
longer break if any view's get_serializer(..) throws an APIException.
2017-09-25 18:28:36 +02:00
..
authtoken Fix authtoken managment command (#5415) 2017-09-12 14:03:29 +01:00
locale Update compiled translations. 2017-08-21 12:05:25 +02:00
schemas Catch APIException in doc generation (#5443) 2017-09-25 18:28:36 +02:00
static/rest_framework Fix JS data binding 2017-08-17 12:33:59 +02:00
templates/rest_framework docs/link.html: fix/remove undefined template var "schema" 2017-08-21 14:47:43 +02:00
templatetags [NEW] Tests for templatetags.schema_links 2017-08-17 21:14:26 +02:00
utils JSONEncoder: Don’t strip microseconds from time 2017-09-25 10:10:44 +02:00
__init__.py Make DEFAULT_PAGINATION_CLASS None by default. (#5170) 2017-09-25 15:36:30 +02:00
apps.py Make DEFAULT_PAGINATION_CLASS None by default. (#5170) 2017-09-25 15:36:30 +02:00
authentication.py RemoteUserAuthentication, docs, and tests (#5306) 2017-08-11 10:35:00 +01:00
checks.py Make DEFAULT_PAGINATION_CLASS None by default. (#5170) 2017-09-25 15:36:30 +02:00
compat.py Remove DjangoFilterBackend and associated tests 2017-09-20 16:47:54 +02:00
decorators.py Allow schema = None. Deprecate exclude_from_schema (#5422) 2017-09-20 11:29:47 +02:00
documentation.py allow custom authentication and permission classes for docs view 2017-09-25 16:17:25 +02:00
exceptions.py Fix doc for ErrorDetail 2017-08-31 12:19:03 +02:00
fields.py Update json imports 2017-09-25 09:08:20 +02:00
filters.py Remove DjangoFilterBackend and associated tests 2017-09-20 16:47:54 +02:00
generics.py Add ValidationError to except in get_object_or_404 for django 1.11 2017-05-05 21:17:12 -04:00
metadata.py Don't list M2M choices in OPTIONS requests. Refs #3751. (#4160) 2016-06-01 17:28:32 +01:00
mixins.py Invalidate any existing prefetch cache on PUT requests. (#4668) 2016-11-11 09:44:35 +00:00
models.py Move models.resolve_model to serializers._resolve_model 2014-01-13 11:47:44 -05:00
negotiation.py Fixed various typos (#4366) 2016-08-08 09:32:22 +01:00
pagination.py Add support for page_size parameter in CursorPaginator class 2017-09-25 11:25:51 +02:00
parsers.py Add 'STRICT_JSON' API setting. 2017-09-25 09:08:20 +02:00
permissions.py Unify QS handling for model/object permissions 2017-09-01 13:56:39 -04:00
relations.py Add tests for HTML_CUTOFF setting and fix issue where setting it to None would raise an exception. 2017-05-24 16:46:18 -07:00
renderers.py Add 'STRICT_JSON' API setting. 2017-09-25 09:08:20 +02:00
request.py Force content_type inclusion in APIRequestFactory 2017-08-31 05:45:12 -04:00
response.py Drop unnecessary TODO notes. 2017-09-14 09:44:59 +01:00
reverse.py Version 3.5 (#4525) 2016-10-10 13:03:46 +01:00
routers.py Allow schema = None. Deprecate exclude_from_schema (#5422) 2017-09-20 11:29:47 +02:00
serializers.py Add failing test for named attribute 2017-09-04 15:44:04 +01:00
settings.py Make DEFAULT_PAGINATION_CLASS None by default. (#5170) 2017-09-25 15:36:30 +02:00
status.py Simplified chained comparisons and minor code fixes (#5276) 2017-07-16 17:12:29 +01:00
test.py Force content_type inclusion in APIRequestFactory 2017-08-31 05:45:12 -04:00
throttling.py Access request.user.is_authenticated as property not method, under Django 1.10+ (#4358) 2016-08-05 11:04:01 +01:00
urlpatterns.py Fixed Django 2.0 compatibility due to django.conf.urls.include parameters change. (#4866) 2017-01-30 16:11:19 +00:00
urls.py Add app_name to rest_framework.urls. 2015-12-08 02:25:00 +01:00
validators.py Update links after moving to encode org 2017-04-07 10:28:35 -04:00
versioning.py Remove extra parentheses (#4789) 2017-01-08 16:09:23 +00:00
views.py Allow schema = None. Deprecate exclude_from_schema (#5422) 2017-09-20 11:29:47 +02:00
viewsets.py Fixed #5228 Set ViewSet args/kwargs/request before dispatch 2017-06-22 16:22:17 +03:00