Skip to content

Commit

Permalink
Component: Use full save to update alerts
Browse files Browse the repository at this point in the history
We want to update the timestamp as well.
  • Loading branch information
nijel committed Jul 22, 2020
1 parent 2f130d5 commit 0068cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weblate/trans/models/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ def add_alert(self, alert, **details):

if not created:
obj.details = details
obj.save(update_fields=["details"])
obj.save()
if ALERTS[alert].link_wide:
for component in self.linked_childs:
component.add_alert(alert, **details)
Expand Down

0 comments on commit 0068cd4

Please sign in to comment.