Skip to content

Commit 32619c0

Browse files
committed
Use raw_update in link_external_issue #350
Signed-off-by: tdruez <[email protected]>
1 parent 5bba4a0 commit 32619c0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

dje/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ def update(self, **kwargs):
946946

947947
def raw_update(self, **kwargs):
948948
"""
949-
Perform a direct SQL UPDATE on this instance.
949+
Perform a direct SQL UPDATE on this instance.
950950
951951
This method updates the specified fields in the database without triggering
952952
the ``save()`` lifecycle or related signals. It bypasses field validation and

workflow/models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,10 @@ def link_external_issue(self, platform, repo, issue_id):
610610
repo=repo,
611611
issue_id=str(issue_id),
612612
)
613-
self.update(external_issue=external_issue)
613+
614+
# Set the external_issue on this instance without triggering the whole
615+
# save() + handle_integrations() logic.
616+
self.raw_update(external_issue=external_issue)
614617

615618
return external_issue
616619

0 commit comments

Comments
 (0)