new integer and integer URL report fields
This commit is contained in:
parent
b605561acd
commit
381e26edaa
1 changed files with 13 additions and 0 deletions
|
@ -183,6 +183,19 @@ class TargetField(RelationField):
|
||||||
return util.getObjectForUid(value)
|
return util.getObjectForUid(value)
|
||||||
|
|
||||||
|
|
||||||
|
class IntegerField(Field):
|
||||||
|
|
||||||
|
def getSortValue(self, row):
|
||||||
|
value = self.getValue(row)
|
||||||
|
if value.isdigit():
|
||||||
|
return int(value)
|
||||||
|
|
||||||
|
|
||||||
|
class IntegerUrlField(IntegerField, UrlField):
|
||||||
|
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class MultiLineField(Field):
|
class MultiLineField(Field):
|
||||||
|
|
||||||
renderer = 'multiline'
|
renderer = 'multiline'
|
||||||
|
|
Loading…
Add table
Reference in a new issue