예제 #1
0
def enrol(request, slug):
    module = get_module_with_contents(slug)
    user = request.user
    tag_as(user.email, user.id, slug)
    return render(request,
                  'modules/module_enrol.html',
                  context={'module': module})
예제 #2
0
def description(request, slug):
    module = get_module_with_contents(slug)
    return render(request, 'modules/module_description.html', context={'module': module})
예제 #3
0
def detail(request, slug):
    module = get_module_with_contents(slug)
    return render(request, 'modules/module_detail.html', {'module': module})
예제 #4
0
def enrol(request, slug):
    module = get_module_with_contents(slug)
    tag_as(request.user.email, slug)
    return render(request, 'modules/module_enrol.html', {'module': module})