Commit b4da1c88 authored by Michal Čihař's avatar Michal Čihař

Store responsible user if available

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 5bff30cd
......@@ -707,6 +707,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
if self.translation_set.exists():
Change.objects.create(
action=Change.ACTION_PUSH,
user=request.user if request else None,
translation=self.translation_set.all()[0],
)
......@@ -745,6 +746,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
if self.translation_set.exists():
Change.objects.create(
action=Change.ACTION_RESET,
user=request.user if request else None,
translation=self.translation_set.all()[0],
)
except RepositoryException as error:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment