django-rest-framework/rest_framework/schemas
Carlton Gibson 7261ae653a Schema: Exclude OPTIONS/HEAD for ViewSet actions (#5532)
Closes #5528.

Viewset custom actions (@detail_route etc) OPTIONS (and HEAD) methods were not being excluded from Schema Generations.

This PR adds a test reproducing the reported error and adjusts `EndpointEnumerator.get_allowed_methods()` to filter ViewSet actions in the same way as other `APIView`s
2017-10-25 10:56:40 +02:00
..
__init__.py allow custom authentication and permission classes for docs view 2017-09-25 16:17:25 +02:00
generators.py Schema: Exclude OPTIONS/HEAD for ViewSet actions (#5532) 2017-10-25 10:56:40 +02:00
inspectors.py include date and date-time format for swagger 2 schema generation (#5511) 2017-10-20 09:14:33 +02:00
utils.py Have is_list_view recognise RetrieveModel… views (#5480) 2017-10-05 20:41:14 +02:00
views.py Allow schema = None. Deprecate exclude_from_schema (#5422) 2017-09-20 11:29:47 +02:00