'Validates if Course Start Date is greater than Course End Date'

def validate_date(self):

    if (self.course_start_date > self.course_end_date):
        frappe.throw(u'Course    Start    Date    cannot    be    greater    than    Course    End    Date.')
