delay layer flag

This commit is contained in:
j 2011-11-02 15:46:27 +01:00
parent 798a56af73
commit f8f500e8c6
1 changed files with 3 additions and 2 deletions

View File

@ -30,8 +30,9 @@ class MetaClip:
streams = self.item.streams()
if streams:
self.aspect_ratio = streams[0].aspect_ratio
for l in self.layers:
setattr(self, l, self.annotations.filter(layer=l).count()>0)
if self.id:
for l in self.layers:
setattr(self, l, self.annotations.filter(layer=l).count()>0)
models.Model.save(self, *args, **kwargs)
def json(self, keys=None):