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

Need to get target while using template

parent 2118dc1f
...@@ -27,7 +27,7 @@ from weblate.lang.models import Language ...@@ -27,7 +27,7 @@ from weblate.lang.models import Language
from whoosh import qparser from whoosh import qparser
from util import msg_checksum, get_source from util import msg_checksum, get_source, get_target
from weblate.trans.search import FULLTEXT_INDEX, SOURCE_SCHEMA, TARGET_SCHEMA from weblate.trans.search import FULLTEXT_INDEX, SOURCE_SCHEMA, TARGET_SCHEMA
...@@ -119,7 +119,7 @@ class UnitManager(models.Manager): ...@@ -119,7 +119,7 @@ class UnitManager(models.Manager):
src = get_source(unit) src = get_source(unit)
ctx = unit.getcontext() ctx = unit.getcontext()
else: else:
src = get_source(template) src = get_target(template)
ctx = template.getcontext() ctx = template.getcontext()
checksum = msg_checksum(src, ctx) checksum = msg_checksum(src, ctx)
......
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