mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #16744 -- Class based view should have the view object in the context
Updated the most recent patch from @claudep to apply again and updated the documentation location.
This commit is contained in:
committed by
Andrew Godwin
parent
547b181046
commit
58683e9c82
@@ -18,6 +18,8 @@ class ContextMixin(object):
|
||||
"""
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
if 'view' not in kwargs:
|
||||
kwargs['view'] = self
|
||||
return kwargs
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user