Added string sort type for default 'name' column
authorThierry Florac <thierry.florac@onf.fr>
Wed, 15 Nov 2017 17:04:37 +0100
changeset 242 a61b26d60c94
parent 241 4b68a8759677
child 243 b9ed4b78393f
Added string sort type for default 'name' column
src/pyams_skin/table.py
--- a/src/pyams_skin/table.py	Wed Nov 15 17:03:30 2017 +0100
+++ b/src/pyams_skin/table.py	Wed Nov 15 17:04:37 2017 +0100
@@ -169,6 +169,8 @@
     attrName = '__name__'
     weight = 10
 
+    dt_sort_type = 'string'
+
     def getValue(self, obj):
         registry = self.request.registry
         adapter = registry.queryMultiAdapter((obj, self.request, self.table), ITableElementName)