def METHOD_NAME(request, lesson_id):
    lssn = get_object_or_404(Lesson, id=lesson_id)
    if not lssn.course.user_is_teacher(request.user):
        return HttpResponseForbidden()
    if request.method == 'POST':
        return lesson_edit(request, lssn.course, lesson_id)
    schools = lssn.course.school_set.all()
    context = {
        'is_create': False,
        'course': lssn.course,
        'lesson': lssn,
        'period_types': lssn.PERIOD_CHOICES,
        'school': schools[0] if schools else '',
        'user_location': request.user.profile.location,
        'geo_suggest_url': settings.GEO_SUGGEST_URL
    }
    return render(request, 'lesson_edit.html', context)