summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-06-16 03:05:04 +0200
committeremkael <emkael@tlen.pl>2016-06-16 11:50:22 +0200
commit01bbbb7336835451888dabfb1fc7e874986585ad (patch)
tree78cf0ffbe972fd7bd3b4c20993ff72646e5172c4
parent1f38c2ebd86df1ff47aabe4b39c3c213c9d848c3 (diff)
* grouped view user preference
-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 7b649fb..50f9f94 100644
--- a/app/backend/rcal/model.py
+++ b/app/backend/rcal/model.py
@@ -146,6 +146,7 @@ class User(BASE):
is_admin = Column(Boolean)
timezone = Column(String(255))
language = Column(String(8))
+ grouped_view = Column(Boolean)
last_login = Column(UTCDateTime)
calendars = relationship('Calendar',
diff --git a/app/frontend/model/User.php b/app/frontend/model/User.php
index 922033f..5a20582 100644
--- a/app/frontend/model/User.php
+++ b/app/frontend/model/User.php
@@ -13,6 +13,7 @@ class User extends ActiveRecord {
public $IsAdmin;
public $Timezone;
public $Language;
+ public $GroupedView;
public $LastLogin;
public static $COLUMN_MAPPING = [
@@ -22,6 +23,7 @@ class User extends ActiveRecord {
'is_admin' => 'IsAdmin',
'timezone' => 'Timezone',
'language' => 'Language',
+ 'grouped_view' => 'GroupedView',
'last_login' => 'LastLogin'
];