def METHOD_NAME(request, domain, group_id):
    group = Group.get(group_id)
    group.doc_type = group.doc_type.rstrip(DELETED_SUFFIX)
    _ensure_case_sharing_privilege(request, group)
    group.save()
    messages.info(request, _('The "{0}" group has been restored.'.format(group.name)))
    return HttpResponseRedirect(
        reverse('group_members', args=[domain, group._id])
    )