From b954a079218300b5c4be1f4e51631835acdfb039 Mon Sep 17 00:00:00 2001 From: sanjeevholla26 Date: Sat, 7 Sep 2024 14:56:33 +0530 Subject: [PATCH] Refs #35738 -- Made lineno attribute optional. --- django/template/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/template/base.py b/django/template/base.py index eee60a190e..53e7257793 100644 --- a/django/template/base.py +++ b/django/template/base.py @@ -672,7 +672,7 @@ class FilterExpression: __slots__ = ("token", "filters", "var", "is_var", "lineno") - def __init__(self, token, parser, lineno): + def __init__(self, token, parser, lineno=None): self.token = token self.lineno = lineno matches = filter_re.finditer(token)