1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 13:50:07 +00:00

[myhome]combine groups_manage and groups_join

This commit is contained in:
llj
2012-08-13 11:03:33 +08:00
parent 22184d7b78
commit ee6c2d2d61
2 changed files with 3 additions and 29 deletions

View File

@@ -678,14 +678,6 @@ def myhome(request):
# my groups
groups = get_personal_groups(email)
groups_manage = []
groups_join = []
for group in groups:
if group.props.creator_name == request.user.username:
groups_manage.append(group)
else:
groups_join.append(group)
# get nickname
if not Profile.objects.filter(user=request.user.username):
nickname = ''
@@ -709,8 +701,6 @@ def myhome(request):
"grpmsg_list": grpmsg_list,
"grpmsg_reply_list": grpmsg_reply_list,
"orgmsg_list": orgmsg_list,
"groups_manage": groups_manage,
"groups_join": groups_join,
"url": settings.SITE_ROOT + 'repo/create/',
}, context_instance=RequestContext(request))