delay layer flag

This commit is contained in:
j 2011-11-02 15:46:27 +01:00
parent 798a56af73
commit f8f500e8c6

View file

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