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

Store more metadata within the unit

This will allow us faster browsing of units and faster gathering of
stats. Unit data now include status of comments/suggestions/checks
and number of words.
parent 8eaf6897
......@@ -446,6 +446,12 @@ class Unit(models.Model):
translated = models.BooleanField(default=False, db_index=True)
position = models.IntegerField(db_index=True)
has_suggestion = models.BooleanField(default=False, db_index=True)
has_comment = models.BooleanField(default=False, db_index=True)
has_failing_check = models.BooleanField(default=False, db_index=True)
num_words = models.IntegerField(default=0)
objects = UnitManager()
class Meta:
......
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