Commit 33b744d7 authored by Michal Čihař's avatar Michal Čihař

Update zero word count so that we process old entries as well

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 1ee578fb
...@@ -665,7 +665,7 @@ class Unit(models.Model): ...@@ -665,7 +665,7 @@ class Unit(models.Model):
force_insert = kwargs.get('force_insert', False) force_insert = kwargs.get('force_insert', False)
# Store number of words # Store number of words
if not same_content: if not same_content or not self.num_words:
self.num_words = len(self.get_source_plurals()[0].split()) self.num_words = len(self.get_source_plurals()[0].split())
# Actually save the unit # Actually save the unit
......
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