Commit a61ab6dcf97760ba7c75cb1cf5d539e89eb7b231

Authored by Macartur Sousa
1 parent aecc98d3

Changed community name to identifier

Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/colab_spb/views.py
@@ -73,8 +73,8 @@ def get_community_association(community, limit=7, offset=0): @@ -73,8 +73,8 @@ def get_community_association(community, limit=7, offset=0):
73 73
74 associations = CommunityAssociations.objects.all() 74 associations = CommunityAssociations.objects.all()
75 for community_association in associations: 75 for community_association in associations:
76 - if community_association.community.name in community:  
77 - return {'community': community_association.community.name, 76 + if community_association.community.identifier in community:
  77 + return {'community': community_association.community.identifier,
78 'repository': community_association.group.url, 78 'repository': community_association.group.url,
79 'mailman_list': community_association.mail_list.name, 79 'mailman_list': community_association.mail_list.name,
80 'limit': limit, 80 'limit': limit,