Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 4df57fb9168f835c7964e24e94f60980a5abcda4 1 parent 6302647
Luke Plant authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  django/db/models/sql/where.py
8  django/db/models/sql/where.py
@@ -36,10 +36,10 @@ 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)

0 notes on commit 4df57fb

Please sign in to comment.
Something went wrong with that request. Please try again.