if not self.extra_context is an empty dictionary. remove kwargs dictionary entry under the 'isolated_context' key, if it exists substitute it for self.isolated_context,
self . isolated_context = kwargs . pop ( 'isolated_context' , False )