diff options
Diffstat (limited to 'django/template/library.py')
-rw-r--r-- | django/template/library.py | 2 |
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'" % |