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

Fixed group wiki bug

This commit is contained in:
zhengxie
2013-04-03 20:22:49 +08:00
parent c9914d60ee
commit 1c37569852

View File

@@ -1193,6 +1193,7 @@ def group_wiki(request, group, page_name="home"):
content = ''
wiki_exists = True
last_modified, latest_contributor = None, None
path, repo_id = '', ''
try:
content, repo_id, obj_id = get_wiki_page(request, group, page_name)
except WikiDoesNotExist:
@@ -1224,10 +1225,10 @@ def group_wiki(request, group, page_name="home"):
"is_staff": group.is_staff,
"content": content,
"page": page_name,
"path": path,
"wiki_exists": wiki_exists,
"last_modified": last_modified,
"latest_contributor": latest_contributor,
"path": path,
"repo_id": repo_id,
}, context_instance=RequestContext(request))