Skip to content

Commit

Permalink
Remove '.model' shortcut from viewset docs. Refs encode#2486. Closes e…
Browse files Browse the repository at this point in the history
  • Loading branch information
maryokhin committed Feb 12, 2015
1 parent 637af1f commit 9d80335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-guide/viewsets.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 9d80335

Please sign in to comment.