

def todos(request, username):
    user = get_object_or_404(User, username=username)
    blasts = Blast.objects.filter(is_todo=True).filter(((Q(user=user) | Q(mentioned_users=user)) | Q(is_broadcast=True))).distinct()
    if (request.user.username == username):
        initial_blast = 'todo: '
    else:
        initial_blast = ('todo: @%s ' % username)
    return render(request, 'todos.html', {
        'section': 'todos',
        'profile': user,
        'blasts': prepare_blasts(blasts, request.user),
        'initial_blast': initial_blast,
    })

dataset/ETHPy150Open simonw/bugle_project/bugle_project/bugle/views.py todos/original