From 80054a8e9440e8696fdada05d51c62550db8f61d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 15 Jun 2011 14:20:45 +0200 Subject: [PATCH] always return instances for now --- pandora/archive/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index a3d79e5..95610e0 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -253,6 +253,8 @@ class File(models.Model): return False def json(self, keys=None, user=None): + if keys and not 'instances' in keys: + keys.append('instances') resolution = (self.width, self.height) if resolution == (0, 0): resolution = None