Index: /main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py
===================================================================
--- /main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py	(revision 14089)
+++ /main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py	(revision 14090)
@@ -122,22 +122,26 @@
 
     @property
+    def depcode(self):
+        try:
+            code = self.context.course1.__parent__.__parent__.code
+            return code
+        except:
+            return
+
+    @property
     def show_pastq_al(self):
-        return self._show_pastq_putme() \
-               and self.context.course1.__parent__.__parent__.code in PASTQ_AL
+        return self._show_pastq_putme() and self.depcode in PASTQ_AL
 
     @property
     def show_pastq_bs(self):
-        return self._show_pastq_putme() \
-               and self.context.course1.__parent__.__parent__.code in PASTQ_BS
+        return self._show_pastq_putme() and self.depcode in PASTQ_BS
 
     @property
     def show_pastq_eps(self):
-        return self._show_pastq_putme() \
-               and self.context.course1.__parent__.__parent__.code in PASTQ_EPS
+        return self._show_pastq_putme() and self.depcode in PASTQ_EPS
 
     @property
     def show_pastq_mss(self):
-        return self._show_pastq_putme() \
-               and self.context.course1.__parent__.__parent__.code in PASTQ_MSS
+        return self._show_pastq_putme() and self.depcode in PASTQ_MSS
 
     @property
