only return instances if requested
This commit is contained in:
parent
2180021421
commit
ff3f1c3399
3 changed files with 2 additions and 5 deletions
|
|
@ -207,9 +207,6 @@ class File(models.Model):
|
|||
return False
|
||||
|
||||
def json(self, keys=None, user=None):
|
||||
#FIXME: why?
|
||||
if keys and not 'instances' in keys:
|
||||
keys.append('instances')
|
||||
resolution = (self.width, self.height)
|
||||
if resolution == (0, 0):
|
||||
resolution = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue