Changeset 16289
- Timestamp:
- 28 Oct 2020, 20:50:41 (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
r16257 r16289 36 36 self.student.matric_number = None 37 37 msg, mnumber = utils.setMatricNumber(self.student) 38 self.assertEqual(self.student.matric_number, '04/021305 ')38 self.assertEqual(self.student.matric_number, '04/021305/dep1') 39 39 self.assertEqual(msg, None) 40 40 return -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py
r16270 r16289 288 288 return _('Matriculation number cannot be set.'), None 289 289 year = unicode(student.entry_session)[2:] 290 return None, "%s/%06d " % (year, next_integer)290 return None, "%s/%06d/%s" % (year, next_integer, student.depcode)
Note: See TracChangeset for help on using the changeset viewer.