Commit 3a1d5d24 authored by Michal Čihař's avatar Michal Čihař

Record change action as well (issue #137)

parent 6251423e
This diff is collapsed.
......@@ -2515,9 +2515,23 @@ class Dictionary(models.Model):
)
class Change(models.Model):
ACTION_UPDATE = 0
ACTION_COMPLETE = 1
ACTION_CHANGE = 2
ACTION_CHOICES = (
(ACTION_UPDATE, ugettext_lazy('Resource update')),
(ACTION_COMPLETE, ugettext_lazy('Translation completed')),
(ACTION_CHANGE, ugettext_lazy('Translation changed')),
)
unit = models.ForeignKey(Unit)
user = models.ForeignKey(User)
timestamp = models.DateTimeField(auto_now_add = True, db_index = True)
action = models.IntegerField(
choices = ACTION_CHOICES,
default = ACTION_CHANGE
)
class Meta:
ordering = ['-timestamp']
......
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