From a960a7bd18c85ffb71d9dfdc2f0f84f52f51e650 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 3 Nov 2011 12:17:50 +0100 Subject: [PATCH] fix find with clips --- pandora/clip/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora/clip/models.py b/pandora/clip/models.py index aac2e10d..10c0056c 100644 --- a/pandora/clip/models.py +++ b/pandora/clip/models.py @@ -51,6 +51,10 @@ class MetaClip: for key in j.keys(): if key not in keys: del j[key] + #needed here to make item find with clips work + if 'annotations' in keys: + j['annotations'] = [a.json(keys=['value', 'id', 'layer']) + for a in self.annotations.filter(layer__in=self.layers)] for key in keys: if key not in clip_keys and key not in j: value = self.item.get(key)