From 97e70d9d16fea95a62c6928528e8065307665a8a Mon Sep 17 00:00:00 2001 From: grumbling-tom <54111798+grumbling-tom@users.noreply.github.com> Date: Sun, 29 Sep 2019 17:07:08 +0100 Subject: [PATCH] custom_spec.rst: Update to indicate swagger_auto_schema import location. (#444) --- docs/custom_spec.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/custom_spec.rst b/docs/custom_spec.rst index b61238e..31956e8 100644 --- a/docs/custom_spec.rst +++ b/docs/custom_spec.rst @@ -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):