forked from 0x2620/pandora
publicid can be null
This commit is contained in:
parent
2543fa4f78
commit
743a01181c
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class Clip(models.Model):
|
|||
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
modified = models.DateTimeField(auto_now=True)
|
||||
public_id = models.CharField(max_length=128, unique=True)
|
||||
public_id = models.CharField(max_length=128, unique=True, null=True)
|
||||
|
||||
item = models.ForeignKey('item.Item', related_name='clips')
|
||||
|
||||
|
|
Loading…
Reference in a new issue