django 1.0 is no longer supported
authorjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Fri, 21 May 2010 13:24:22 +0000 (13:24 +0000)
committerjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Fri, 21 May 2010 13:24:22 +0000 (13:24 +0000)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@851 e071eeec-0327-468d-9b6a-08194a12b294

ldapdb/models/query.py

index 49c183e5432f900bde835098917f9197df0cc251..ae4b73c7b559a3eac87e4953935b271c4a46bba1 100644 (file)
@@ -90,12 +90,7 @@ class WhereNode(BaseWhereNode):
             if isinstance(item, WhereNode):
                 bits.append(item.as_sql())
                 continue
-            if len(item) == 4:
-                # django 1.1
-                (table, column, type), x, y, values = item
-            else:
-                # django 1.0
-                table, column, type, x, y, values = item
+            (table, column, type), x, y, values = item
             equal_bits = [ "(%s=%s)" % (column, value) for value in values ]
             if len(equal_bits) == 1:
                 clause = equal_bits[0]