From 5a5303c5c56eb8bd7f6dd233add021a1ffc85882 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 2 Feb 2018 11:50:03 +0100 Subject: The link of a feed can not be None. --- src/web/models/feed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/web/models/feed.py b/src/web/models/feed.py index 2c26a71f..13210713 100644 --- a/src/web/models/feed.py +++ b/src/web/models/feed.py @@ -41,7 +41,7 @@ class Feed(db.Model, RightMixin): id = db.Column(db.Integer(), primary_key=True) title = db.Column(db.String(), default="") description = db.Column(db.String(), default="FR") - link = db.Column(db.String()) + link = db.Column(db.String(), nullable=False) site_link = db.Column(db.String(), default="") enabled = db.Column(db.Boolean(), default=True) created_date = db.Column(db.DateTime(), default=datetime.utcnow) -- cgit