add new changelog and call add_changelog all over the place

This commit is contained in:
j 2014-12-17 13:45:46 +00:00
commit 9e9bf30c42
27 changed files with 365 additions and 44 deletions

View file

@ -265,11 +265,6 @@ class Annotation(models.Model):
del j['id']
return j
def log(self):
c = Changelog(type='annotation')
c.value = self.json(layer=True)
c.save()
def __unicode__(self):
return u"%s %s-%s" %(self.public_id, self.start, self.end)