mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #28331 -- Added ContextMixin.extra_context to allowing passing context in as_view().
This commit is contained in:
@@ -62,7 +62,8 @@ interface to working with templates in class-based views.
|
||||
any data they want to ensure is in there as keyword arguments.
|
||||
``get_context_data()`` returns a dictionary; in ``ContextMixin`` it
|
||||
simply returns its keyword arguments, but it is common to override this to
|
||||
add more members to the dictionary.
|
||||
add more members to the dictionary. You can also use the
|
||||
:attr:`~django.views.generic.base.ContextMixin.extra_context` attribute.
|
||||
|
||||
Building up Django's generic class-based views
|
||||
==============================================
|
||||
|
||||
Reference in New Issue
Block a user