allow rendered find queries, fixes #804

This commit is contained in:
j 2012-05-29 11:26:18 +02:00
parent fb6422388d
commit 488e982483
2 changed files with 3 additions and 0 deletions

View file

@ -66,6 +66,8 @@ def parseCondition(condition, user):
return Q(id=0)
elif k == 'oshash':
return Q(files__oshash=v)
elif k == 'rendered':
return Q(rendered=v)
elif k == 'resolution':
q = parseCondition({'key': 'width', 'value': v[0], 'operator': op}, user) \
& parseCondition({'key': 'height', 'value': v[1], 'operator': op}, user)

View file

@ -685,6 +685,7 @@ class Item(models.Model):
'resolution',
'width',
'height',
'rendered',
'rightslevel',
'saturation',
'size',