+ view_args = getargspec(view)
+ if extra_context is not None and ('extra_context' in view_args[0] or view_args[2] is not None):
+ if 'extra_context' in kwargs:
+ extra_context.update(kwargs['extra_context'])
+ kwargs['extra_context'] = extra_context
+ if 'node' in view_args[0] or view_args[2] is not None:
+ kwargs['node'] = node