Commit d3ab1c32 authored by Michal Čihař's avatar Michal Čihař

Implement Unit.get_absolute_url

parent f2e01db3
......@@ -478,6 +478,9 @@ class Unit(models.Model):
)
ordering = ['position']
def get_absolute_url(self):
return '%s?oldpos=%d&dir=stay' % (self.translation.get_translate_url(), self.position)
def update_from_unit(self, unit, pos, force):
location = ', '.join(unit.getlocations())
if hasattr(unit, 'typecomments'):
......
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