'Validates that the old_password field is correct.'

def clean_old_password(self):

    old_password = self.cleaned_data['old_password']
    if (not self.user.check_password(old_password)):
        raise forms.ValidationError(_('Your    old    password    was    entered    incorrectly.    Please    enter    it    again.'))
    return old_password
