mirror of
https://github.com/django/django.git
synced 2025-07-05 10:19:20 +00:00
[1.2.X] Fixed #11594 - Inaccurate docstring for WhereNode.add()
Thanks to garrison for report, dwillis for patch Backport of [13843] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13844 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
0c8e8b15b5
commit
21f60e9fa9
@ -36,10 +36,10 @@ class WhereNode(tree.Node):
|
|||||||
def add(self, data, connector):
|
def add(self, data, connector):
|
||||||
"""
|
"""
|
||||||
Add a node to the where-tree. If the data is a list or tuple, it is
|
Add a node to the where-tree. If the data is a list or tuple, it is
|
||||||
expected to be of the form (alias, col_name, field_obj, lookup_type,
|
expected to be of the form (obj, lookup_type, value), where obj is
|
||||||
value), which is then slightly munged before being stored (to avoid
|
a Constraint object, and is then slightly munged before being stored
|
||||||
storing any reference to field objects). Otherwise, the 'data' is
|
(to avoid storing any reference to field objects). Otherwise, the 'data'
|
||||||
stored unchanged and can be anything with an 'as_sql()' method.
|
is stored unchanged and can be any class with an 'as_sql()' method.
|
||||||
"""
|
"""
|
||||||
if not isinstance(data, (list, tuple)):
|
if not isinstance(data, (list, tuple)):
|
||||||
super(WhereNode, self).add(data, connector)
|
super(WhereNode, self).add(data, connector)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user