mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
[1.5.x] Fixed #20890 -- Added missing import in class-based view docs.
Thanks André Augusto.
Backport of ab680725bf
from master
This commit is contained in:
parent
12edced1de
commit
9e2a2c491b
1 changed files with 1 additions and 0 deletions
|
@ -198,6 +198,7 @@ A similar class-based view might look like::
|
||||||
|
|
||||||
from django.http import HttpResponseRedirect
|
from django.http import HttpResponseRedirect
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
|
from django.views.generic.base import View
|
||||||
|
|
||||||
from .forms import MyForm
|
from .forms import MyForm
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue