def is_preview_request(request):
    """ Return true if this is a request for a task preview """
    return ('assignmentId' not in request.GET or
            request.GET['assignmentId'] == 'ASSIGNMENT_ID_NOT_AVAILABLE')