def grading_file(submission):
    """ Determines if the submission has a grading file,
        leads to nice little icon in the submission overview.
    """
    if submission.grading_file.name:
        return True
    else:
        return False
