Commit 9986bab0 authored by Michal Čihař's avatar Michal Čihař

Need to update all index on source string change

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 67240cf4
...@@ -670,9 +670,9 @@ class Unit(models.Model, LoggerMixin): ...@@ -670,9 +670,9 @@ class Unit(models.Model, LoggerMixin):
fuzzy=True, fuzzy=True,
previous_source=previous_source, previous_source=previous_source,
) )
# Update source index, it's enough to do it for one as we index by # Update source index
# checksum which is same for all for unit in same_source.interator():
update_index_unit(self, True) update_index_unit(unit, True)
def generate_change(self, request, author, oldunit, change_action): def generate_change(self, request, author, oldunit, change_action):
""" """
......
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