forked from 0x2620/pandora
return sort values for clips too
This commit is contained in:
parent
2a7fa3e4e8
commit
55fc0ccbfa
1 changed files with 4 additions and 1 deletions
|
@ -88,7 +88,10 @@ class Clip(models.Model):
|
||||||
for a in self.annotations.filter(layer__name=layer)]
|
for a in self.annotations.filter(layer__name=layer)]
|
||||||
for key in keys:
|
for key in keys:
|
||||||
if key not in clip_keys and key not in j:
|
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
|
return j
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in a new issue