return sort values for clips too

This commit is contained in:
j 2011-10-29 01:35:01 +02:00
parent 2a7fa3e4e8
commit 55fc0ccbfa

View file

@ -88,7 +88,10 @@ class Clip(models.Model):
for a in self.annotations.filter(layer__name=layer)]
for key in keys:
if key not in clip_keys and key not in j:
j[key] = self.item.get(key)
value = self.item.get(key)
if not value and hasattr(self.item.sort, key):
value = getattr(self.item.sort, key)
j[key] = value
return j
@classmethod