aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/models.py')
-rw-r--r--pyaggr3g470r/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyaggr3g470r/models.py b/pyaggr3g470r/models.py
index 90801edc..de360697 100644
--- a/pyaggr3g470r/models.py
+++ b/pyaggr3g470r/models.py
@@ -66,6 +66,9 @@ class Article(Document):
]
}
+ def __eq__(self, other):
+ return self.link == other
+
def __str__(self):
return 'Article: %s' % self.title
bgstack15