From 70906b0117ae125b75faf0938af54d18081ac816 Mon Sep 17 00:00:00 2001 From: Gaetan Delannay Date: Fri, 9 Jan 2015 13:18:45 +0100 Subject: [PATCH] [gen] Indexes: bugfix. --- doc/version.txt | 2 +- fields/__init__.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/version.txt b/doc/version.txt index f374f66..2003b63 100644 --- a/doc/version.txt +++ b/doc/version.txt @@ -1 +1 @@ -0.9.1 +0.9.2 diff --git a/fields/__init__.py b/fields/__init__.py index fd952ab..72ce690 100644 --- a/fields/__init__.py +++ b/fields/__init__.py @@ -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'