예제 #1
0
 def clean_version(self):
     if not VERSION_RE.match(self.cleaned_data['version']):
         raise forms.ValidationError(_('The version string is invalid.'))
     return self.cleaned_data['version']
예제 #2
0
파일: forms.py 프로젝트: atassumer/zamboni
 def clean_version(self):
     if not VERSION_RE.match(self.cleaned_data['version']):
         raise forms.ValidationError(_('The version string is invalid.'))
     return self.cleaned_data['version']