'Returns True if the current time is after the specified course end date.
Returns False if there is no end date specified.'

def has_ended(self):

    return course_metadata_utils.has_course_ended(self.end)
