Skip to content

Commit 41a1b3e

Browse files
authored
Fix typo in rest-framework docs
1 parent 1d05666 commit 41a1b3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/rest-framework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ PublisherSerializer():
9090
This higher-level function generates a serializer given a view instance.
9191

9292
* The name of the serializer is inferred from the view name (the word `View` is removed).
93-
* The model class is taken from either the `queryset` attribute of the view, or (if `get_queryset` has been overridden), explicitly from the `Model` attribute.
93+
* The model class is taken from either the `queryset` attribute of the view, or (if `get_queryset` has been overridden), explicitly from the `model` attribute.
9494
* The spec is taken from the `spec` attribute of the view.
9595

9696
This can be used to create a simple [custom `AutoSchema` subclass](https://www.django-rest-framework.org/api-guide/schemas/#autoschema) to support schema generation:

0 commit comments

Comments
 (0)