Skip to content

Commit 1fb8b24

Browse files
committed
Merge pull request #2867 from vially/patch-1
Frontpage example no longer uses model attribute
2 parents 8beef47 + e148637 commit 1fb8b24

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/tutorial/quickstart.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ Rather than write multiple views we're grouping together all the common behavior
8383

8484
We can easily break these down into individual views if we need to, but using viewsets keeps the view logic nicely organized as well as being very concise.
8585

86-
Notice that our viewset classes here are a little different from those in the [frontpage example][readme-example-api], as they include `queryset` and `serializer_class` attributes, instead of a `model` attribute.
87-
8886
For trivial cases you can simply set a `model` attribute on the `ViewSet` class and the serializer and queryset will be automatically generated for you. Setting the `queryset` and/or `serializer_class` attributes gives you more explicit control of the API behaviour, and is the recommended style for most applications.
8987

9088
## URLs

0 commit comments

Comments
 (0)