- Timestamp:
- 2 Nov 2020, 12:16:39 (4 years ago)
- Location:
- main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_utils.py
r16289 r16294 36 36 self.student.matric_number = None 37 37 msg, mnumber = utils.setMatricNumber(self.student) 38 self.assertEqual(self.student.matric_number, '04/021305/ dep1')38 self.assertEqual(self.student.matric_number, '04/021305/fac1') 39 39 self.assertEqual(msg, None) 40 40 return -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py
r16289 r16294 288 288 return _('Matriculation number cannot be set.'), None 289 289 year = unicode(student.entry_session)[2:] 290 return None, "%s/%06d/%s" % (year, next_integer, student. depcode)290 return None, "%s/%06d/%s" % (year, next_integer, student.faccode)
Note: See TracChangeset for help on using the changeset viewer.