summaryrefslogtreecommitdiff
path: root/docs/ref/class-based-views/base.txt
diff options
context:
space:
mode:
authorBruno Alla <browniebroke@users.noreply.github.com>2017-07-06 15:34:54 +0100
committerTim Graham <timograham@gmail.com>2017-07-06 10:34:54 -0400
commit604341c85fe42c809d17ea2418566a48f60f78db (patch)
tree991b8f9f65c451c2888b2f6086f1cda144c1eb35 /docs/ref/class-based-views/base.txt
parent42e91cd6f4a5ea79ebacbc58a9ffaf115d8800d5 (diff)
Fixed #28331 -- Added ContextMixin.extra_context to allowing passing context in as_view().
Diffstat (limited to 'docs/ref/class-based-views/base.txt')
-rw-r--r--docs/ref/class-based-views/base.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/ref/class-based-views/base.txt b/docs/ref/class-based-views/base.txt
index 2928880ec6..6230f1181e 100644
--- a/docs/ref/class-based-views/base.txt
+++ b/docs/ref/class-based-views/base.txt
@@ -156,6 +156,9 @@ MRO is an acronym for Method Resolution Order.
* Populated (through :class:`~django.views.generic.base.ContextMixin`) with
the keyword arguments captured from the URL pattern that served the view.
+ * You can also add context using the
+ :attr:`~django.views.generic.base.ContextMixin.extra_context` keyword
+ argument for :meth:`~django.views.generic.base.View.as_view`.
``RedirectView``
================