rename Item.itemId to Item.public_id

This commit is contained in:
j 2014-09-19 12:26:46 +00:00
commit 3232ce6989
44 changed files with 382 additions and 213 deletions

View file

@ -11,7 +11,7 @@ def parseCondition(condition, user, item=None):
k = condition.get('key', 'name')
k = {
'user': 'user__username',
'item': 'items__itemId',
'item': 'items__public_id',
}.get(k, k)
if not k:
k = 'name'