diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-02 17:42:31 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-02 17:42:31 +0100 |
commit | d84e10ac976c38e95f340b397d566e8ac3e89c39 (patch) | |
tree | d10540a0e867ca3e72da2a28b1394c7e827fe69e /pyaggr3g470r/models.py | |
parent | Another minor bugfix... (diff) | |
download | newspipe-d84e10ac976c38e95f340b397d566e8ac3e89c39.tar.gz newspipe-d84e10ac976c38e95f340b397d566e8ac3e89c39.tar.bz2 newspipe-d84e10ac976c38e95f340b397d566e8ac3e89c39.zip |
Bugfix when deleting an entire feed.
Diffstat (limited to 'pyaggr3g470r/models.py')
-rw-r--r-- | pyaggr3g470r/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pyaggr3g470r/models.py b/pyaggr3g470r/models.py index 82c0be15..1234b0a8 100644 --- a/pyaggr3g470r/models.py +++ b/pyaggr3g470r/models.py @@ -43,6 +43,10 @@ class Feed(EmbeddedDocument): 'ordering': ['+title'] } + def __eq__(self, other): + return self.title == other.title + + def __str__(self): return 'Feed: %s' % self.title |