diff options
author | emkael <emkael@tlen.pl> | 2016-03-16 23:38:58 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-03-16 23:38:58 +0100 |
commit | a6cc84b7759d554896468b866019663732cc3df0 (patch) | |
tree | 06e17fb330db9df1d152a3b1bb7d3f0d1a2135ad | |
parent | 519ae86377ce9462099c3d025ed4d2fda90774c5 (diff) |
* custom fields for calendar record
-rw-r--r-- | app/php/model/Calendar.php | 6 | ||||
-rw-r--r-- | app/python/rcal/model.py | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/app/php/model/Calendar.php b/app/php/model/Calendar.php index 9e1afce..ab0b2e8 100644 --- a/app/php/model/Calendar.php +++ b/app/php/model/Calendar.php @@ -13,6 +13,9 @@ class Calendar extends ActiveRecord { public $Name; public $Website; public $Visible; + public $CustomName; + public $CustomImage; + public $CustomUrl; public $LastUpdated; public $CategoryID; @@ -24,6 +27,9 @@ class Calendar extends ActiveRecord { 'website' => 'Website', 'visible' => 'Visible', 'last_updated' => 'LastUpdated', + 'custom_name' => 'CustomName', + 'custom_image' => 'CustomImage', + 'custom_url' => 'CustomUrl', '_category' => 'CategoryID' ]; diff --git a/app/python/rcal/model.py b/app/python/rcal/model.py index 4ac212f..eb5325e 100644 --- a/app/python/rcal/model.py +++ b/app/python/rcal/model.py @@ -32,6 +32,9 @@ class Calendar(BASE): name = Column(String(255), index=True) website = Column(String(255)) visible = Column(Boolean, index=True) + custom_name = Column(String(255)) + custom_image = Column(String(255)) + custom_url = Column(String(255)) last_updated = Column(TIMESTAMP) _category = Column( |