forked from 0x2620/pandora
place name
This commit is contained in:
parent
75bdebe0de
commit
6c21c02359
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ def parseCondition(condition, user):
|
||||||
k = condition.get('key', 'name')
|
k = condition.get('key', 'name')
|
||||||
k = {
|
k = {
|
||||||
'user': 'user__username',
|
'user': 'user__username',
|
||||||
'place': 'places__id',
|
'place': 'places__name',
|
||||||
}.get(k, k)
|
}.get(k, k)
|
||||||
if not k:
|
if not k:
|
||||||
k = 'name'
|
k = 'name'
|
||||||
|
|
|
@ -155,7 +155,7 @@ pandora.ui.list = function(view) { // fixme: remove view argument
|
||||||
items: function(data, callback) {
|
items: function(data, callback) {
|
||||||
return pandora.api.findAnnotations($.extend(data, {
|
return pandora.api.findAnnotations($.extend(data, {
|
||||||
query: {
|
query: {
|
||||||
conditions:[{key: 'place', value: place.id, operator:'='}]
|
conditions:[{key: 'place', value: place.name, operator:'='}]
|
||||||
},
|
},
|
||||||
itemQuery: pandora.Query.toObject()
|
itemQuery: pandora.Query.toObject()
|
||||||
}), callback);
|
}), callback);
|
||||||
|
|
Loading…
Reference in a new issue