'Clean date_to'

def clean_dateto(self):

    if (not (self.cleaned_data['dateto'] >= self.cleaned_data['datefrom'])):
        raise forms.ValidationError('From    date    can    not    be    greater    than    To    date.')
