diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2010-09-13 21:44:21 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2010-09-13 21:44:21 +0000 |
| commit | 4df57fb9168f835c7964e24e94f60980a5abcda4 (patch) | |
| tree | 7d3d5b6eb0b56bf0f42bcf1bf87167c04c20aa09 /django/db/models/sql/where.py | |
| parent | 6302647647ea46fc66ce55271157c163fc57db15 (diff) | |
Fixed #11594 - Inaccurate docstring for WhereNode.add()
Thanks to garrison for report, dwillis for patch
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13843 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/sql/where.py')
| -rw-r--r-- | django/db/models/sql/where.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/django/db/models/sql/where.py b/django/db/models/sql/where.py index 4e5a647259..72b2d4cc82 100644 --- a/django/db/models/sql/where.py +++ b/django/db/models/sql/where.py @@ -36,10 +36,10 @@ class WhereNode(tree.Node): def add(self, data, connector): """ 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, - value), which is then slightly munged before being stored (to avoid - storing any reference to field objects). Otherwise, the 'data' is - stored unchanged and can be anything with an 'as_sql()' method. + expected to be of the form (obj, lookup_type, value), where obj is + a Constraint object, and is then slightly munged before being stored + (to avoid storing any reference to field objects). Otherwise, the 'data' + is stored unchanged and can be any class with an 'as_sql()' method. """ if not isinstance(data, (list, tuple)): super(WhereNode, self).add(data, connector) |
