Skip to content

Commit

Permalink
Component: Track acting user in background tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Sep 22, 2020
1 parent 2898554 commit 18bb33c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions weblate/trans/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ def component_removal(pk, uid):
user = User.objects.get(pk=uid)
try:
obj = Component.objects.get(pk=pk)
obj.acting_user = user
Change.objects.create(
project=obj.project,
action=Change.ACTION_REMOVE_COMPONENT,
Expand Down

0 comments on commit 18bb33c

Please sign in to comment.