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})
def description(request, slug): module = get_module_with_contents(slug) return render(request, 'modules/module_description.html', context={'module': module})
def detail(request, slug): module = get_module_with_contents(slug) return render(request, 'modules/module_detail.html', {'module': module})
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})