1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

Fixed #8283 -- Fixed an edge case when adding things to the "where" tree and

combining different connector types.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8413 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick
2008-08-16 20:40:00 +00:00
parent 4dece4fba1
commit c127f0117d
2 changed files with 7 additions and 1 deletions

View File

@@ -87,7 +87,7 @@ class Node(object):
Otherwise, the whole tree is pushed down one level and a new root
connector is created, connecting the existing tree and the new node.
"""
if node in self.children:
if node in self.children and conn_type == self.connector:
return
if len(self.children) < 2:
self.connector = conn_type