

def clean(self):
    password = self.cleaned_data.get('password')
    if password:
        self.user_cache = authenticate(username=self.request.user.username, password=password)
        if (self.user_cache is None):
            raise forms.ValidationError(_('Invalid password.'))
    return self.cleaned_data

dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/projects/forms.py ProjectDeleteForm.clean/original