From 2e3ced606bd9befb3f5c7d885c78b0f832de7063 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 2 Nov 2013 17:50:59 +0100 Subject: The link of the feed is unique. --- pyaggr3g470r/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit