[gen] While <obj>.<fieldName> allows to get the 'DB' value of some field, <obj>.getValue allows to get a variant of it, ie, the formatted version (via an internal call to field.getFormattedValue).
This commit is contained in:
parent
8aed007623
commit
71bc58a8b0
9 changed files with 67 additions and 36 deletions
|
@ -933,7 +933,7 @@ class Ref(Field):
|
|||
# object to show is in the request.
|
||||
return int(req.get('%s_startNumber' % ajaxHookId, 0))
|
||||
|
||||
def getFormattedValue(self, obj, value, showChanges=False):
|
||||
def getFormattedValue(self, obj, value, showChanges=False, language=None):
|
||||
return value
|
||||
|
||||
def getIndexType(self): return 'ListIndex'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue