Skip to content

Commit

Permalink
custom_spec.rst: Update to indicate swagger_auto_schema import locati…
Browse files Browse the repository at this point in the history
…on. (#444)
  • Loading branch information
grumbling-tom authored and axnsan12 committed Sep 29, 2019
1 parent ee086a6 commit 97e70d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/custom_spec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ You can use the :func:`@swagger_auto_schema <.swagger_auto_schema>` decorator on
some properties of the generated :class:`.Operation`. For example, in a ``ViewSet``,

.. code-block:: python
from drf_yasg.utils import swagger_auto_schema
@swagger_auto_schema(operation_description="partial_update description override", responses={404: 'slug not found'})
def partial_update(self, request, *args, **kwargs):
Expand Down

0 comments on commit 97e70d9

Please sign in to comment.