diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-02 17:50:59 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-02 17:50:59 +0100 |
commit | 2e3ced606bd9befb3f5c7d885c78b0f832de7063 (patch) | |
tree | 8e8e99ef3c9107942c12cabc264a7197df8cf312 /pyaggr3g470r | |
parent | Sign in -> Log in (diff) | |
download | newspipe-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.py | 2 |
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)) |