mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
magic-removal: Fixed #1535 (bug with combined m2m and m2o to the same model). Thanks, Russell Cloran.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2613 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
158691e884
commit
fcea8ed021
@ -769,7 +769,7 @@ def lookup_inner(path, clause, value, opts, table, column):
|
||||
if intermediate_table:
|
||||
joins[backend.quote_name(current_table)] = (
|
||||
backend.quote_name(intermediate_table),
|
||||
"INNER JOIN",
|
||||
"LEFT OUTER JOIN",
|
||||
"%s.%s = %s.%s" % \
|
||||
(backend.quote_name(table),
|
||||
backend.quote_name(current_opts.pk.column),
|
||||
|
Loading…
x
Reference in New Issue
Block a user