mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Refs #35738 -- Made lineno attribute optional.
This commit is contained in:
parent
de9c2fa6df
commit
b954a07921
@ -672,7 +672,7 @@ class FilterExpression:
|
|||||||
|
|
||||||
__slots__ = ("token", "filters", "var", "is_var", "lineno")
|
__slots__ = ("token", "filters", "var", "is_var", "lineno")
|
||||||
|
|
||||||
def __init__(self, token, parser, lineno):
|
def __init__(self, token, parser, lineno=None):
|
||||||
self.token = token
|
self.token = token
|
||||||
self.lineno = lineno
|
self.lineno = lineno
|
||||||
matches = filter_re.finditer(token)
|
matches = filter_re.finditer(token)
|
||||||
|
Loading…
Reference in New Issue
Block a user