summaryrefslogtreecommitdiff
path: root/django/template
diff options
context:
space:
mode:
authorPatrick Seebauer <patrick.seebauer@gmail.com>2019-12-29 22:04:14 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-01-02 10:44:07 +0100
commite3d546a1d986f83d8698c32e13afd048b65d06eb (patch)
treec521190bbf1bbebcbdf16b996d500ae080ead752 /django/template
parent69331bb851c34f05bc77e9fc24020fe6908b9cd5 (diff)
Fixed #31128 -- Fixed TemplateSyntaxError in simple_tag() and inclusion_tag() for kwargs.
Diffstat (limited to 'django/template')
-rw-r--r--django/template/library.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/library.py b/django/template/library.py
index 20bc86dac8..2f74556268 100644
--- a/django/template/library.py
+++ b/django/template/library.py
@@ -261,7 +261,7 @@ def parse_bits(parser, bits, params, varargs, varkw, defaults,
if kwarg:
# The kwarg was successfully extracted
param, value = kwarg.popitem()
- if param not in params and param not in unhandled_kwargs and varkw is None:
+ if param not in params and param not in kwonly and varkw is None:
# An unexpected keyword argument was supplied
raise TemplateSyntaxError(
"'%s' received unexpected keyword argument '%s'" %