Shows if a request is pending

This commit is contained in:
2011-01-10 17:22:44 +00:00
parent 1bca0f76d5
commit 61ba8675ab
2 changed files with 5 additions and 3 deletions

View File

@@ -51,7 +51,9 @@ def group_list(request):
requestable = False
fixed = not group.groupinformation.type == GROUP_TYPE_PERMISSION
group_list.append((group.id, group.name, status, requestable, fixed))
pending = group.requests.filter(status=REQUEST_PENDING,user=request.user).count()
group_list.append((group.id, group.name, status, requestable, fixed, pending))
return render_to_response('groups/group_list.html', locals(), context_instance=RequestContext(request))