mirror of https://github.com/django/django.git
Fixed #21261 -- Added missing import in RedirectView docs
Thanks yokomizor.
This commit is contained in:
parent
2b8519760e
commit
2fb127b881
|
@ -178,6 +178,7 @@ RedirectView
|
||||||
|
|
||||||
**Example views.py**::
|
**Example views.py**::
|
||||||
|
|
||||||
|
from django.core.urlresolvers import reverse
|
||||||
from django.shortcuts import get_object_or_404
|
from django.shortcuts import get_object_or_404
|
||||||
from django.views.generic.base import RedirectView
|
from django.views.generic.base import RedirectView
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue