custom_spec.rst: Update to indicate swagger_auto_schema import location. (#444)

This commit is contained in:
grumbling-tom
2019-09-29 17:07:08 +01:00
committed by Cristi Vîjdea
parent ee086a6eec
commit 97e70d9d16
+1
View File
@@ -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):