Skip to content

Commit 005ec28

Browse files
committed
Add proposal filter
1 parent a43aea8 commit 005ec28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/api/submissions/mutations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,12 @@ def update_submission(
354354
)
355355

356356
ProposalMaterial.objects.filter(
357+
proposal=instance,
357358
id__in=[
358359
m.id
359360
for m in existing_materials.values()
360361
if m not in materials_to_update
361-
]
362+
],
362363
).delete()
363364
ProposalMaterial.objects.bulk_create(materials_to_create)
364365
ProposalMaterial.objects.bulk_update(

0 commit comments

Comments
 (0)