always return instances for now
This commit is contained in:
parent
5b1d370ec0
commit
80054a8e94
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue