@blueprint.route('<STR_LIT>', methods=['<STR_LIT:GET>', '<STR_LIT:POST>'])<EOL>@blueprint.route('<STR_LIT>', methods=['<STR_LIT:GET>', '<STR_LIT:POST>'])<EOL>@register_breadcrumb(<EOL>blueprint, '<STR_LIT>', _('<STR_LIT>'),<EOL>dynamic_list_constructor=lambda:<EOL>[{'<STR_LIT:text>': get_group_name(request.view_args['<STR_LIT>'])},<EOL>{'<STR_LIT:text>': _('<STR_LIT>')}]<EOL>)<EOL>@login_required<EOL>def manage(group_id):
group = Group.query.get_or_404(group_id)<EOL>form = GroupForm(request.form, obj=group)<EOL>if form.validate_on_submit():<EOL><INDENT>if group.can_edit(current_user):<EOL><INDENT>try:<EOL><INDENT>group.update(**form.data)<EOL>flash(_('<STR_LIT>', name=group.name),<EOL>'<STR_LIT:success>')<EOL><DEDENT>except Exception as e:<EOL><INDENT>flash(str(e), '<STR_LIT:error>')<EOL>return render_template(<EOL>"<STR_LIT>",<EOL>form=form,<EOL>group=group,<EOL>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>flash(<EOL>_(<EOL>'<STR_LIT>',<EOL>group_name=group.name<EOL>),<EOL>'<STR_LIT:error>'<EOL>)<EOL><DEDENT><DEDENT>return render_template(<EOL>"<STR_LIT>",<EOL>form=form,<EOL>group=group,<EOL>)<EOL>
Manage your group.