From 244513f249be60c9a73888a2dfbcf88f740c49a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 1 Mar 2012 15:13:36 +0100 Subject: [PATCH] Prevent another storage of long list --- trans/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trans/models.py b/trans/models.py index bd76fc2ea..e7f2661a1 100644 --- a/trans/models.py +++ b/trans/models.py @@ -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)