1
0
mirror of https://github.com/django/django.git synced 2025-03-10 17:32:41 +00:00

Removed incorrect statement from docstring

The docstring of FilterExpression said that it shouldn't be
instantiated from anywhere but the get_filters_from_token
helper function.

However, that helper function was deleted in commit
3ede006fc98f7e96ae9fb997872f78635576d5f8 and FilterExpression
is instantiated from inside the compile_filter help function.
This commit is contained in:
Patrick Robertson 2014-02-19 11:36:37 +08:00 committed by Baptiste Mispelon
parent 072fb923e1
commit 6d18ab01d9

View File

@ -545,9 +545,6 @@ class FilterExpression(object):
2
>>> fe.var
<Variable: 'variable'>
This class should never be instantiated outside of the
get_filters_from_token helper function.
"""
def __init__(self, token, parser):
self.token = token