Remove '.model' shortcut from viewset docs. Refs #2486. Closes #2549.

This commit is contained in:
Tymur Maryokhin 2015-02-12 01:10:03 +01:00
parent 637af1fc14
commit 9d80335ac8

View File

@ -178,7 +178,7 @@ The actions provided by the `ModelViewSet` class are `.list()`, `.retrieve()`,
#### Example
Because `ModelViewSet` extends `GenericAPIView`, you'll normally need to provide at least the `queryset` and `serializer_class` attributes, or the `model` attribute shortcut. For example:
Because `ModelViewSet` extends `GenericAPIView`, you'll normally need to provide at least the `queryset` and `serializer_class` attributes. For example:
class AccountViewSet(viewsets.ModelViewSet):
"""