Commit d7fab0e16e9b6c3fe3a66b20688ddb9d091564eb
1 parent
88c2742c
Exists in
master
and in
39 other branches
adding get_absolute_url method to mailinglist
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/super_archives/models.py
| ... | ... | @@ -72,6 +72,9 @@ class MailingList(models.Model): |
| 72 | 72 | logo = models.FileField(upload_to='list_logo') #TODO |
| 73 | 73 | last_imported_index = models.IntegerField(default=0) |
| 74 | 74 | |
| 75 | + def get_absolute_url(self): | |
| 76 | + return u'{}?list={}'.format(reverse('list_messages'), self.name) | |
| 77 | + | |
| 75 | 78 | def __unicode__(self): |
| 76 | 79 | return self.name |
| 77 | 80 | ... | ... |