def METHOD_NAME(request):
    """Review creation view."""
    # Collect form data into Review model instance.
    if request.method == 'POST':
        form = ReviewForm(request.POST)
        if form.is_valid():
            instance = form.save(commit=False)
            instance.user = request.user
            instance.hours_per_week = \
                instance.amount_reading + instance.amount_writing + \
                instance.amount_group + instance.amount_homework
            instance.save()
            messages.success(request,
                             f'Successfully reviewed {instance.course}!')
            return redirect('reviews')
        return render(request, 'reviews/new_review.html', {'form': form})
    return render(request, 'reviews/new_review.html')