1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

[3.2.x] Fixed #32271 -- Improved consistency of docs CBV examples.

Co-Authored-By: Carles Pina i Estany <carles@pina.cat>

Backport of 5fd4f22d19 from master
This commit is contained in:
Jack Aitken
2021-03-01 16:54:22 -05:00
committed by Mariusz Felisiak
parent 7e6e822162
commit 9f277c3a7c
8 changed files with 52 additions and 52 deletions

View File

@@ -150,7 +150,7 @@ uploads:
from django.views.generic.edit import FormView
from .forms import FileFieldForm
class FileFieldView(FormView):
class FileFieldFormView(FormView):
form_class = FileFieldForm
template_name = 'upload.html' # Replace with your template.
success_url = '...' # Replace with your URL or reverse().