diff options
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 |