1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 11:57:34 +00:00

[lib setting] basic info: remove 'description'

This commit is contained in:
llj
2015-05-22 16:42:42 +08:00
parent 90acdcc894
commit 1e009acffc
3 changed files with 3 additions and 13 deletions

View File

@@ -2115,12 +2115,11 @@ def ajax_repo_change_basic_info(request, repo_id):
}), status=400, content_type=content_type)
repo_name = form.cleaned_data['repo_name']
repo_desc = form.cleaned_data['repo_desc']
days = form.cleaned_data['days']
# Edit library info (name, descryption).
if repo.name != repo_name or repo.desc != repo_desc:
if not edit_repo(repo_id, repo_name, repo_desc, username):
if repo.name != repo_name:
if not edit_repo(repo_id, repo_name, '', username): # set desc as ''
err_msg = _(u'Failed to edit library information.')
return HttpResponse(json.dumps({'error': err_msg}),
status=500, content_type=content_type)