0
0
mirror of https://github.com/django/django.git synced 2024-11-21 19:09:18 +01:00

Refs #35738 -- Made lineno attribute optional.

This commit is contained in:
sanjeevholla26 2024-09-07 14:56:33 +05:30
parent de9c2fa6df
commit b954a07921

View File

@ -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)