Add missing overrides to swagger_auto_schema (#194)

Add missing `operation_summary` and `deprecated` to `swagger_auto_schema` decorator data. The previous PR missed adding these to extra overrides.

- Added tests
- Updated reference.yaml

Refs #149, #173.
Closes #194, #198.
This commit is contained in:
Nour Chawich
2018-08-30 15:46:07 +02:00
committed by Cristi Vîjdea
parent 02b8848912
commit 0837873f55
3 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -137,7 +137,8 @@ class ArticleViewSet(viewsets.ModelViewSet):
"""update method docstring"""
return super(ArticleViewSet, self).update(request, *args, **kwargs)
@swagger_auto_schema(operation_description="partial_update description override", responses={404: 'slug not found'})
@swagger_auto_schema(operation_description="partial_update description override", responses={404: 'slug not found'},
operation_summary='partial_update summary', deprecated=True)
def partial_update(self, request, *args, **kwargs):
"""partial_update method docstring"""
return super(ArticleViewSet, self).partial_update(request, *args, **kwargs)