unicode, key_type

This commit is contained in:
j 2011-01-03 08:45:31 +00:00
commit 7745ec5c7f
2 changed files with 7 additions and 7 deletions

View file

@ -34,8 +34,8 @@ def parseCondition(condition):
else:
exclude = False
key_type = models.site_config['keys'].get(k, 'string')
return {
key_type = models.site_config['keys'].get(k, {'type':'string'}).get('type')
key_type = {
'title': 'string',
'person': 'string'
}.get(key_type, key_type)