From e3c92d5a7985714d62c7ea6a90cc843d4ed250d6 Mon Sep 17 00:00:00 2001
From: Derek Willis <dwillis@gmail.com>
Date: Mon, 2 Aug 2010 22:21:50 -0400
Subject: [PATCH] Fixed Inaccurate docstring for WhereNode.add()
---
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 4e5a647..4cfcfef 100644
a
|
b
|
class WhereNode(tree.Node):
|
36 | 36 | def add(self, data, connector): |
37 | 37 | """ |
38 | 38 | Add a node to the where-tree. If the data is a list or tuple, it is |
39 | | expected to be of the form (alias, col_name, field_obj, lookup_type, |
40 | | value), which is then slightly munged before being stored (to avoid |
41 | | storing any reference to field objects). Otherwise, the 'data' is |
42 | | stored unchanged and can be anything with an 'as_sql()' method. |
| 39 | expected to be of the form (obj, lookup_type, value), where obj is |
| 40 | a Constraint object, and is then slightly munged before being stored |
| 41 | (to avoid storing any reference to field objects). Otherwise, the 'data' |
| 42 | is stored unchanged and can be any class with an 'as_sql()' method. |
43 | 43 | """ |
44 | 44 | if not isinstance(data, (list, tuple)): |
45 | 45 | super(WhereNode, self).add(data, connector) |