Commit 04026d49 authored by Michal Čihař's avatar Michal Čihař

Update flags on saving to backend

parent 47754d1e
......@@ -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
......
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