Commit 80ff4efa853ca112423caba0a7978d3d078c9bb6
1 parent
883c4815
Exists in
master
and in
79 other branches
Added unicode method to help on associations
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
src/colab_spb/models.py
... | ... | @@ -8,3 +8,8 @@ class CommunityAssociations(models.Model): |
8 | 8 | community = models.ForeignKey(noosfero.NoosferoCommunity, null=True) |
9 | 9 | group = models.ForeignKey(gitlab.GitlabGroup, null=True) |
10 | 10 | mail_list = models.ForeignKey(mailman.MailingList, null=True) |
11 | + | |
12 | + def __unicode__(self): | |
13 | + return u'Social: {} - Dev: {} - List: {}'.format(self.community.name, | |
14 | + self.group.name, | |
15 | + self.mail_list.name) | ... | ... |