always return instances for now

This commit is contained in:
j 2011-06-15 14:20:45 +02:00
parent 28796b80ba
commit 8bf2a89749

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