Index: main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py
===================================================================
--- main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py	(revision 15379)
+++ main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py	(revision 15382)
@@ -216,5 +216,5 @@
         # and same counter as PTP.
         self.student.matric_number = None
-        self.student['studycourse'].certificate.study_mode = 'dsh'
+        self.student['studycourse'].certificate.study_mode = 'ug_dsh'
         msg, mnumber = utils.setMatricNumber(self.student)
         self.assertEqual(self.student.matric_number, 'DSH/fac1/dep1/04/00002')
Index: main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
===================================================================
--- main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py	(revision 15379)
+++ main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py	(revision 15382)
@@ -154,5 +154,5 @@
         is as an attribute of the site configuration container.
         """
-        if student.current_mode in ('ug_pt', 'de_pt', 'dsh'):
+        if student.current_mode in ('ug_pt', 'de_pt', 'ug_dsh', 'de_dsh'):
             grok.getSite()['configuration'].next_matric_integer += 1
             return
@@ -197,5 +197,5 @@
             return None, "AAU/SPS/%s/%s/%s/%s/%05d" % (
                 faccode, depcode, year, degree, next_integer)
-        if student.current_mode in ('dsh',):
+        if student.current_mode in ('ug_dsh', 'de_dsh'):
             next_integer = grok.getSite()['configuration'].next_matric_integer
             if next_integer == 0:
