fix: delete old blocks from on issue update
This commit is contained in:
parent
364ad0a301
commit
e631d50853
1 changed files with 1 additions and 0 deletions
|
|
@ -229,6 +229,7 @@ class IssueCreateSerializer(BaseSerializer):
|
||||||
)
|
)
|
||||||
|
|
||||||
if blocks is not None:
|
if blocks is not None:
|
||||||
|
IssueBlocker.objects.filter(blocked_by=instance).delete()
|
||||||
IssueBlocker.objects.bulk_create(
|
IssueBlocker.objects.bulk_create(
|
||||||
[
|
[
|
||||||
IssueBlocker(
|
IssueBlocker(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue