diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2018-02-02 11:50:03 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2018-02-02 11:50:03 +0100 |
commit | 5a5303c5c56eb8bd7f6dd233add021a1ffc85882 (patch) | |
tree | b2d2c261c79b7edfe81683517debf3b146c73aaa /src/web/models | |
parent | Updated some dependencies. (diff) | |
download | newspipe-5a5303c5c56eb8bd7f6dd233add021a1ffc85882.tar.gz newspipe-5a5303c5c56eb8bd7f6dd233add021a1ffc85882.tar.bz2 newspipe-5a5303c5c56eb8bd7f6dd233add021a1ffc85882.zip |
The link of a feed can not be None.
Diffstat (limited to 'src/web/models')
-rw-r--r-- | src/web/models/feed.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |