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