Always use False for leave commit before joining new group.
This commit is contained in:
parent
a8fc1206d9
commit
22269af2ca
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ class GroupableMixin:
|
||||||
if self == group:
|
if self == group:
|
||||||
raise ValueError('Cant join self')
|
raise ValueError('Cant join self')
|
||||||
|
|
||||||
self.leave_group(commit=commit)
|
self.leave_group(commit=False)
|
||||||
group.add_child(self, commit=commit)
|
group.add_child(self, commit=commit)
|
||||||
|
|
||||||
@decorators.transaction
|
@decorators.transaction
|
||||||
|
|
Loading…
Reference in a new issue