Commit 140e2216 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Group owner can update group description & homepage

Refs: #2793
parent 1829985b
......@@ -736,6 +736,8 @@ def group_detail(request, group_id):
)
@signed_terms_required
@login_required
def group_update(request, group_id):
if request.method != 'POST':
return HttpResponseBadRequest('Method not allowed.')
......@@ -746,7 +748,11 @@ def group_update(request, group_id):
form = AstakosGroupUpdateForm(request.POST, instance=group)
if form.is_valid():
form.save()
return group_detail(request, group_id)
return object_detail(request,
AstakosGroup.objects.all(),
object_id=group_id,
extra_context={'quota': group.quota,
'form': form})
@signed_terms_required
@login_required
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment