def group_membership_request_serializer(membership_request):
    """Membership request information serializer."""
    return {'membership_request_id': membership_request.id, 'user': {
        'user_id': membership_request.user_id, 'name': membership_request.
        user.name}, 'requested_at': str(membership_request.requested_at),
        'group': {'group_id': membership_request.group_id, 'name':
        membership_request.group.name}}
