publicid can be null

This commit is contained in:
j 2011-10-19 16:29:23 +02:00
commit 743a01181c
2 changed files with 3 additions and 2 deletions

View file

@ -123,7 +123,8 @@ class Annotation(models.Model):
start=self.start,
end=self.end)
if created:
self.clip.save()
clip = Clip.objects.get(pk=self.clip.pk)
clip.save()
super(Annotation, self).save(*args, **kwargs)