Add docs note about disabling schemas for actions

This commit is contained in:
Ryan P Kilby 2018-06-22 17:34:58 -04:00
parent 3feea10bae
commit 16bfa3521b

View File

@ -243,6 +243,14 @@ You may disable schema generation for a view by setting `schema` to `None`:
...
schema = None # Will not appear in schema
This also applies to extra actions for `ViewSet`s:
class CustomViewSet(viewsets.ModelViewSet):
@action(detail=True, schema=None)
def extra_action(self, request, pk=None):
...
---
**Note**: For full details on `SchemaGenerator` plus the `AutoSchema` and