Update flags on saving to backend
This commit is contained in:
parent
47754d1e74
commit
04026d4935
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user