Fix bad m2m call

This commit is contained in:
Stefan Wehrmeyer 2022-03-25 08:36:07 +01:00
parent 2f88cdcd61
commit 3cfac9bd6d

View file

@ -173,7 +173,7 @@ class GovernmentPlanUpdateAcceptProposalForm(GovernmentPlanUpdateProposalForm):
if proposal_id:
proposals = self.get_proposals()
proposal_user = proposals[proposal_id]["user"]
user_org = proposal_user.organizations.all().first()
user_org = proposal_user.organization_set.all().first()
if user_org:
update.organization = user_org
delete_proposals.append(proposal_id)