aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-11-02 17:50:59 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-11-02 17:50:59 +0100
commit2e3ced606bd9befb3f5c7d885c78b0f832de7063 (patch)
tree8e8e99ef3c9107942c12cabc264a7197df8cf312 /pyaggr3g470r
parentSign in -> Log in (diff)
downloadnewspipe-2e3ced606bd9befb3f5c7d885c78b0f832de7063.tar.gz
newspipe-2e3ced606bd9befb3f5c7d885c78b0f832de7063.tar.bz2
newspipe-2e3ced606bd9befb3f5c7d885c78b0f832de7063.zip
The link of the feed is unique.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/models.py b/pyaggr3g470r/models.py
index 1234b0a8..2c94e960 100644
--- a/pyaggr3g470r/models.py
+++ b/pyaggr3g470r/models.py
@@ -33,7 +33,7 @@ class User(Document, UserMixin):
class Feed(EmbeddedDocument):
oid = ObjectIdField(default=bson.objectid.ObjectId , primary_key=True)
title = StringField(required=True)
- link = StringField(required=True)
+ link = StringField(required=True, unique=True)
site_link = StringField(required=True)
mail = BooleanField(default=False)
articles = ListField(ReferenceField('Article', dbref = False))
bgstack15