aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/models.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-11-01 17:35:22 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-11-01 17:35:22 +0100
commitc5cc3e6d3f1dff98cdac855d7399b9fe8235cfef (patch)
tree1d5c5154787d072197d3429568a912fc88b68ad9 /pyaggr3g470r/models.py
parentImproved sort of feeds. (diff)
downloadnewspipe-c5cc3e6d3f1dff98cdac855d7399b9fe8235cfef.tar.gz
newspipe-c5cc3e6d3f1dff98cdac855d7399b9fe8235cfef.tar.bz2
newspipe-c5cc3e6d3f1dff98cdac855d7399b9fe8235cfef.zip
It is now possible to delete an article or an entire feed.
Diffstat (limited to 'pyaggr3g470r/models.py')
-rw-r--r--pyaggr3g470r/models.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/pyaggr3g470r/models.py b/pyaggr3g470r/models.py
index 629cc4c2..82c0be15 100644
--- a/pyaggr3g470r/models.py
+++ b/pyaggr3g470r/models.py
@@ -77,18 +77,6 @@ if __name__ == "__main__":
user1 = User(firstname="Cédric", lastname="Bonhomme", \
email="kimble.mandel@gmail.com", pwdhash=generate_password_hash("admin"))
user1.save()
- user2 = User(firstname="Carole", lastname="Niesel", \
- email="carole.niesel@gmail.com", pwdhash=generate_password_hash("secret"))
- user2.save()
-
- user2 = User.objects(email="carole.niesel@gmail.com").first()
- feed1user2 = Feed(title='Zaubette - une maitresse qui ouvre son cartable', \
- link='http://zaubette.eklablog.com/rss/', \
- site_link='http://zaubette.eklablog.com/', \
- mail = False)
- user2.feeds.append(feed1user2)
- user2.save()
-
import mongodb
mongo = mongodb.Articles("127.0.0.1", 27017, \
bgstack15