always return instances for now

This commit is contained in:
j 2011-06-15 14:20:45 +02:00
parent 5b1d370ec0
commit 80054a8e94

View file

@ -253,6 +253,8 @@ class File(models.Model):
return False return False
def json(self, keys=None, user=None): def json(self, keys=None, user=None):
if keys and not 'instances' in keys:
keys.append('instances')
resolution = (self.width, self.height) resolution = (self.width, self.height)
if resolution == (0, 0): if resolution == (0, 0):
resolution = None resolution = None