sql: create user role IDs as strings
This commit is contained in:
parent
65c684dec6
commit
ccdcfcea60
|
@ -1302,7 +1302,7 @@ class SqlUser(SqlMixin, wcs.users.User):
|
|||
if o.last_seen:
|
||||
o.last_seen = time.mktime(o.last_seen.timetuple())
|
||||
if o.roles:
|
||||
o.roles = [int(x) for x in o.roles]
|
||||
o.roles = [str(x) for x in o.roles]
|
||||
o.form_data = cls._row2obdata(row, cls.get_formdef())
|
||||
return o
|
||||
_row2ob = classmethod(_row2ob)
|
||||
|
|
Loading…
Reference in New Issue