Prevent another storage of long list

This commit is contained in:
Michal Čihař 2012-03-01 15:13:36 +01:00
parent f32e069c15
commit 244513f249

View File

@ -287,9 +287,8 @@ class Translation(models.Model):
'''
store = self.get_store()
src = unit.get_source_plurals()[0]
pounits = store.findunits(src)
need_save = False
for pounit in pounits:
for pounit in store.findunits(src):
if pounit.getcontext() == unit.context:
if hasattr(pounit.target, 'strings'):
potarget = join_plural(pounit.target.strings)