Shows a different link if the group is moderated or not

This commit is contained in:
2011-05-19 11:39:39 +01:00
parent 7648c04fb2
commit 6f9749636c
2 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ def group_list(request):
fixed = not group.groupinformation.type == GROUP_TYPE_PERMISSION
pending = group.requests.filter(status=REQUEST_PENDING,user=request.user).count()
group_list.append((group.id, group.name, group.groupinformation.description, status, requestable, fixed, pending))
group_list.append((group.id, group.name, group.groupinformation.description, status, requestable, fixed, pending, group.groupinformation.moderated))
group_list = sorted(group_list, key=lambda name: name[1].lower())