cleanup field names

This commit is contained in:
j 2011-01-03 21:32:33 +05:30
commit 60e3f658a1
3 changed files with 17 additions and 15 deletions

View file

@ -37,7 +37,9 @@ def parseCondition(condition):
key_type = models.site_config['keys'].get(k, {'type':'string'}).get('type')
key_type = {
'title': 'string',
'person': 'string'
'person': 'string',
'text': 'string',
'year': 'string',
}.get(key_type, key_type)
if key_type == "string":