set assigner in sharing stake update
This commit is contained in:
@@ -399,6 +399,12 @@ class StakeHolderShareAmountViewSet(viewsets.ModelViewSet, DynamicSearchMixin, S
|
||||
|
||||
# get object & remove distribution
|
||||
share_holder = self.get_object()
|
||||
|
||||
# set assigner organization in distribution data
|
||||
data['distribution'].update({
|
||||
'assigner_organization': share_holder.quota_distribution.assigner_organization.id
|
||||
})
|
||||
|
||||
share_holder.quota_distribution.delete()
|
||||
|
||||
# create distribution
|
||||
|
||||
Reference in New Issue
Block a user