From b47a81da8fbf6b6384c8b068132b257835ffff01 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 10 Jun 2016 11:48:01 +0200 Subject: * user language preference model --- app/backend/rcal/model.py | 1 + app/frontend/model/User.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/backend/rcal/model.py b/app/backend/rcal/model.py index 512c75e..7b649fb 100644 --- a/app/backend/rcal/model.py +++ b/app/backend/rcal/model.py @@ -145,6 +145,7 @@ class User(BASE): password = Column(String(255)) is_admin = Column(Boolean) timezone = Column(String(255)) + language = Column(String(8)) last_login = Column(UTCDateTime) calendars = relationship('Calendar', diff --git a/app/frontend/model/User.php b/app/frontend/model/User.php index d431183..922033f 100644 --- a/app/frontend/model/User.php +++ b/app/frontend/model/User.php @@ -12,6 +12,7 @@ class User extends ActiveRecord { public $Password; public $IsAdmin; public $Timezone; + public $Language; public $LastLogin; public static $COLUMN_MAPPING = [ @@ -20,6 +21,7 @@ class User extends ActiveRecord { 'password' => 'Password', 'is_admin' => 'IsAdmin', 'timezone' => 'Timezone', + 'language' => 'Language', 'last_login' => 'LastLogin' ]; -- cgit v1.2.3