custom_spec.rst: Update to indicate swagger_auto_schema import location. (#444)
parent
ee086a6eec
commit
97e70d9d16
|
|
@ -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``,
|
some properties of the generated :class:`.Operation`. For example, in a ``ViewSet``,
|
||||||
|
|
||||||
.. code-block:: python
|
.. 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'})
|
@swagger_auto_schema(operation_description="partial_update description override", responses={404: 'slug not found'})
|
||||||
def partial_update(self, request, *args, **kwargs):
|
def partial_update(self, request, *args, **kwargs):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue