diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-10-30 14:13:42 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-10-30 14:13:42 +0100 |
commit | 6eb1d0b4f3c15497532eb0bb24d4147e5910f56e (patch) | |
tree | 8e38a3211b2c89f42d5213da9779d129f6999536 /db | |
parent | f66fcacc2aaaa3adbc2f81d2ac740e112c496046 (diff) |
Update db.models.CodeqUser
Diffstat (limited to 'db')
-rw-r--r-- | db/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/models.py b/db/models.py index 23152c3..58cb240 100644 --- a/db/models.py +++ b/db/models.py @@ -7,8 +7,8 @@ from . import get_connection, return_connection __all__ = ['CodeqUser', 'Solution'] -class CodeqUser(collections.namedtuple('CodeqUser', ['id', 'username', 'password', 'name', 'email', 'is_admin', 'is_active', 'date_joined', 'last_login'])): - __sql_prefix = 'select id, username, password, name, email, is_admin, is_active, date_joined, last_login from codeq_user' +class CodeqUser(collections.namedtuple('CodeqUser', ['id', 'username', 'password', 'name', 'email', 'is_admin', 'is_active', 'date_joined', 'last_login', 'gui_lang', 'robot_address', 'saml_data', 'gui_layout'])): + __sql_prefix = 'select id, username, password, name, email, is_admin, is_active, date_joined, last_login, gui_lang, robot_address, saml_data, gui_layout from codeq_user' @staticmethod def get(**kwargs): |