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:
committed by
Mariusz Felisiak
parent
7e6e822162
commit
9f277c3a7c
@@ -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().
|
||||
|
||||
Reference in New Issue
Block a user