mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Fixed #20266 -- Updated view example in CBV introduction
Thanks jim at hellolocals.com for the report.
This commit is contained in:
parent
b0bbccf630
commit
58b3a974fc
@ -130,7 +130,7 @@ Another option is to configure class attributes as keyword arguments to the
|
|||||||
:meth:`~django.views.generic.base.View.as_view` call in the URLconf::
|
:meth:`~django.views.generic.base.View.as_view` call in the URLconf::
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
(r'^about/', MyView.as_view(greeting="G'day")),
|
(r'^about/', GreetingView.as_view(greeting="G'day")),
|
||||||
)
|
)
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
Loading…
x
Reference in New Issue
Block a user