From 04026d49359bc3c0e2258f2e929aa072c1cb3c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 1 Mar 2012 16:32:11 +0100 Subject: [PATCH] Update flags on saving to backend --- trans/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trans/models.py b/trans/models.py index 1a56030d4..178b9a853 100644 --- a/trans/models.py +++ b/trans/models.py @@ -412,6 +412,10 @@ class Unit(models.Model): # Store to backend (saved, pounit) = self.translation.update_unit(self, request) self.translated = pounit.istranslated() + if hasattr(pounit, 'typecomments'): + self.flags = ', '.join(pounit.typecomments) + else: + self.flags = '' self.save(backend = True) self.translation.update_stats() # Propagate to other projects