Commit 8011d9fa authored by Michal Čihař's avatar Michal Čihař

Make the IndexUpdate unique for an Unit

We don't need to update the unit more times, just fetching the latest
state is enough.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 33b744d7
......@@ -23,7 +23,7 @@ from weblate.trans.models.unit import Unit
class IndexUpdate(models.Model):
unit = models.ForeignKey(Unit)
unit = models.ForeignKey(Unit, unique=True)
source = models.BooleanField(default=True)
class Meta(object):
......
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