From 8838d4dd498c8f66ea4237fe8a79a5f77d6f95c9 Mon Sep 17 00:00:00 2001 From: Vytis Banaitis Date: Wed, 1 Feb 2017 18:41:56 +0200 Subject: Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments. --- django/template/loader_tags.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'django/template') diff --git a/django/template/loader_tags.py b/django/template/loader_tags.py index 6a45b8c985..a0b0de54d0 100644 --- a/django/template/loader_tags.py +++ b/django/template/loader_tags.py @@ -157,10 +157,10 @@ class ExtendsNode(Node): class IncludeNode(Node): context_key = '__include_context' - def __init__(self, template, *args, **kwargs): + def __init__(self, template, *args, extra_context=None, isolated_context=False, **kwargs): self.template = template - self.extra_context = kwargs.pop('extra_context', {}) - self.isolated_context = kwargs.pop('isolated_context', False) + self.extra_context = extra_context or {} + self.isolated_context = isolated_context super().__init__(*args, **kwargs) def render(self, context): -- cgit v1.3