Skip to content

Commit

Permalink
Fix typo in rest-framework docs
Browse files Browse the repository at this point in the history
  • Loading branch information
j4mie authored Mar 5, 2024
1 parent 1d05666 commit 41a1b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/rest-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ PublisherSerializer():
This higher-level function generates a serializer given a view instance.

* The name of the serializer is inferred from the view name (the word `View` is removed).
* 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.
* 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.
* The spec is taken from the `spec` attribute of the view.

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:
Expand Down

0 comments on commit 41a1b3e

Please sign in to comment.