[gen] Indexes: bugfix.

This commit is contained in:
Gaetan Delannay 2015-01-09 13:18:45 +01:00
parent 863952ac3d
commit 70906b0117
2 changed files with 2 additions and 1 deletions

View file

@ -1 +1 @@
0.9.1
0.9.2

View file

@ -641,6 +641,7 @@ class Field:
# be used for sorting.
return (usage == 'sort') and 'SortableTitle' or 'Title'
elif self.name == 'state': return 'State'
elif self.name == 'SearchableText': return 'SearchableText'
else:
res = 'get%s%s'% (self.name[0].upper(), self.name[1:])
if (usage == 'sort') and self.hasSortIndex(): res += '_sort'