From a1b6457313b950986bb9747624704b2863d12256 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 19 Jan 2006 03:33:30 +0000 Subject: [PATCH] magic-removal: Removed support for old-style undocumented '_or' syntax in DB queries. git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2070 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/query.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/django/db/models/query.py b/django/db/models/query.py index d96a3426d0..a5f2f7aec4 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -205,13 +205,6 @@ def parse_lookup(kwarg_items, opts): joins.update(joins2) where.extend(where2) params.extend(params2) - elif kwarg == '_or': - for val in value: - tables2, joins2, where2, params2 = parse_lookup(val, opts) - tables.extend(tables2) - joins.update(joins2) - where.append('(%s)' % ' OR '.join(where2)) - params.extend(params2) else: # Must be a search parameter. path = kwarg.split(LOOKUP_SEPARATOR)