summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-03 22:10:54 +0200
committeremkael <emkael@tlen.pl>2016-05-04 10:05:38 +0200
commitc0499e33a7eb2453c5a8657bf942e4a83e1f1bb2 (patch)
tree859dc4525b249ffceb3584824cc54d13bd5132ea /app
parentbb11fd7a0d1f24ac145523a84cb3123b2e0ab57f (diff)
* calendar URLs are unique
Diffstat (limited to 'app')
-rw-r--r--app/python/rcal/model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/python/rcal/model.py b/app/python/rcal/model.py
index 88672b2..5b16e8b 100644
--- a/app/python/rcal/model.py
+++ b/app/python/rcal/model.py
@@ -34,7 +34,7 @@ class Calendar(BASE):
visible = Column(Boolean, index=True)
custom_name = Column(String(255))
custom_image = Column(String(255))
- custom_url = Column(String(255))
+ custom_url = Column(String(255), unique=True, nullable=False, index=True)
last_updated = Column(TIMESTAMP)
_category = Column(