From 8bf2a89749001ab4ddbd096d41a497496d6f4e09 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 a3d79e5a..95610e07 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