From 8ba89c04b8902950edf7287bc83cb4dbfe039532 Mon Sep 17 00:00:00 2001 From: jlaine Date: Fri, 21 May 2010 13:24:22 +0000 Subject: [PATCH] django 1.0 is no longer supported git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@851 e071eeec-0327-468d-9b6a-08194a12b294 --- ldapdb/models/query.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ldapdb/models/query.py b/ldapdb/models/query.py index 49c183e..ae4b73c 100644 --- a/ldapdb/models/query.py +++ b/ldapdb/models/query.py @@ -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] -- 2.30.2