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