def edit_request_email_context(request, edit_request):
    """prepare context for rendering edit request notifications"""
    return {'edit_request': edit_request,
            'cert_url': request.build_absolute_uri(edit_request.certificate.get_absolute_url()),
            'home_url': request.build_absolute_uri('/'),
            'review_url': request.build_absolute_uri(edit_request.get_absolute_url())
            }