Example #1
0
 def clean_courMatric(self):
     try:
         courMatric = Matric(self.cleaned_data["courMatric"])
     except ValueError:
         raise forms.ValidationError("Código Inválido")
     return courMatric  #.
Example #2
0
 def clean_userMatric(self):
     try:
         matric = Matric(self.cleaned_data["userMatric"])
     except ValueError:
         raise forms.ValidationError(lang.DICT["EXCEPTION_INV_STU_MT"])
     return matric
Example #3
0
 def clean_courMatric(self):
     try:
         matric = Matric(self.cleaned_data["courMatric"])
     except ValueError:
         raise forms.ValidationError("Código da Disciplina inválido.")
     return matric