diff --git a/VERSION b/VERSION index 7e455225..946c24ca 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.9.5-trunk+timestamp.2014.06.14.10.06.38 +Version 2.9.5-trunk+timestamp.2014.06.19.17.16.40 diff --git a/gluon/dal.py b/gluon/dal.py index 9397706c..ebc80f2e 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -7315,13 +7315,13 @@ def sqlhtml_validators(field): def ff(r, id): row = r(id) if not row: - return id + return str(id) elif hasattr(r, '_format') and isinstance(r._format, str): return r._format % row elif hasattr(r, '_format') and callable(r._format): return r._format(row) else: - return id + return str(id) if field_type in (('string', 'text', 'password')): requires.append(validators.IS_LENGTH(field_length)) elif field_type == 'json':