From: jlaine Date: Fri, 21 May 2010 13:24:22 +0000 (+0000) Subject: django 1.0 is no longer supported X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fdjango-ldapdb.git;a=commitdiff_plain;h=8ba89c04b8902950edf7287bc83cb4dbfe039532 django 1.0 is no longer supported git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@851 e071eeec-0327-468d-9b6a-08194a12b294 --- 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]