Skip to content

Commit 9d80335

Browse files
committed
Remove '.model' shortcut from viewset docs. Refs encode#2486. Closes encode#2549.
1 parent 637af1f commit 9d80335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/viewsets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ The actions provided by the `ModelViewSet` class are `.list()`, `.retrieve()`,
178178

179179
#### Example
180180

181-
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:
181+
Because `ModelViewSet` extends `GenericAPIView`, you'll normally need to provide at least the `queryset` and `serializer_class` attributes. For example:
182182

183183
class AccountViewSet(viewsets.ModelViewSet):
184184
"""

0 commit comments

Comments
 (0)