fix: validate academic term while checking for enrollment duplication

This commit is contained in:
Rucha Mahabal 2020-09-15 17:01:00 +05:30
parent 68a07eda72
commit f5eb45bf23

View File

@ -28,6 +28,7 @@ class ProgramEnrollment(Document):
"student": self.student,
"program": self.program,
"academic_year": self.academic_year,
"academic_term": self.academic_term,
"docstatus": ("<", 2),
"name": ("!=", self.name)
})