From 41a1b3e37e33c881ee6cf9b8f45ca00c2e79e44a Mon Sep 17 00:00:00 2001 From: Jamie Matthews Date: Tue, 5 Mar 2024 10:33:33 +0000 Subject: [PATCH] Fix typo in rest-framework docs --- docs/reference/rest-framework.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/rest-framework.md b/docs/reference/rest-framework.md index 91b8a0b..097a0af 100644 --- a/docs/reference/rest-framework.md +++ b/docs/reference/rest-framework.md @@ -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: