summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-06-10 11:48:01 +0200
committeremkael <emkael@tlen.pl>2016-06-10 11:48:01 +0200
commitb47a81da8fbf6b6384c8b068132b257835ffff01 (patch)
treef2812941b299fd0a33c31c8727a512b51cb53750
parent817d6fd42eb3ac0d1ee9a73fe5e5a4b1ec21da05 (diff)
* user language preference model
-rw-r--r--app/backend/rcal/model.py1
-rw-r--r--app/frontend/model/User.php2
2 files changed, 3 insertions, 0 deletions
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'
];