mirror of
https://github.com/django/django.git
synced 2025-06-16 17:09:12 +00:00
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
This commit is contained in:
parent
5954baf5e9
commit
a1b6457313
@ -205,13 +205,6 @@ def parse_lookup(kwarg_items, opts):
|
|||||||
joins.update(joins2)
|
joins.update(joins2)
|
||||||
where.extend(where2)
|
where.extend(where2)
|
||||||
params.extend(params2)
|
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.
|
else: # Must be a search parameter.
|
||||||
path = kwarg.split(LOOKUP_SEPARATOR)
|
path = kwarg.split(LOOKUP_SEPARATOR)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user