Set user org on update from proposal if exists
This commit is contained in:
parent
0f1edb3d18
commit
2f88cdcd61
1 changed files with 3 additions and 1 deletions
|
|
@ -173,7 +173,9 @@ class GovernmentPlanUpdateAcceptProposalForm(GovernmentPlanUpdateProposalForm):
|
|||
if proposal_id:
|
||||
proposals = self.get_proposals()
|
||||
proposal_user = proposals[proposal_id]["user"]
|
||||
update.user = proposal_user
|
||||
user_org = proposal_user.organizations.all().first()
|
||||
if user_org:
|
||||
update.organization = user_org
|
||||
delete_proposals.append(proposal_id)
|
||||
|
||||
self.delete_proposals(delete_proposals)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue