diff options
| author | amirsoroush <114881632+amirsoroush@users.noreply.github.com> | 2023-03-22 00:02:24 +0300 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-03-22 09:56:06 +0100 |
| commit | e4fad1372d59f0e65f6bab5948c7b73791aa7840 (patch) | |
| tree | 53a3b986345f32576a140013c108ece6301a7526 /docs | |
| parent | ae824eceb1ddcaef336677bf9a6e704097cd2309 (diff) | |
[4.2.x] Fixed typo in docs/topics/class-based-views/mixins.txt.
Backport of 6087bc4e15e89d968396807f8485f4b5624c4f03 from main
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/class-based-views/mixins.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/topics/class-based-views/mixins.txt b/docs/topics/class-based-views/mixins.txt index 2603c7d447..c51c03bd80 100644 --- a/docs/topics/class-based-views/mixins.txt +++ b/docs/topics/class-based-views/mixins.txt @@ -538,11 +538,11 @@ write our own ``get_context_data()`` to make the context["form"] = AuthorInterestForm() return context -Then the ``AuthorInterestForm`` is a :class:`FormView`, but we have to bring in -:class:`~django.views.generic.detail.SingleObjectMixin` so we can find the -author we're talking about, and we have to remember to set ``template_name`` to -ensure that form errors will render the same template as ``AuthorDetailView`` -is using on ``GET``:: +Then the ``AuthorInterestFormView`` is a :class:`FormView`, but we have to +bring in :class:`~django.views.generic.detail.SingleObjectMixin` so we can find +the author we're talking about, and we have to remember to set +``template_name`` to ensure that form errors will render the same template as +``AuthorDetailView`` is using on ``GET``:: from django.http import HttpResponseForbidden from django.urls import reverse |
