Changeset 9249 for main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
- Timestamp:
- 27 Sep 2012, 21:46:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/browser.py
r9248 r9249 125 125 def form_fields(self): 126 126 if self.context.is_postgrad: 127 form_fields = grok.AutoFields(INigeriaPGStudentClearance) 128 else: 129 form_fields = grok.AutoFields(INigeriaUGStudentClearance) 127 form_fields = grok.AutoFields( 128 INigeriaPGStudentClearance).omit('clr_code') 129 else: 130 form_fields = grok.AutoFields( 131 INigeriaUGStudentClearance).omit('clr_code') 130 132 return form_fields 131 133 … … 138 140 if self.context.is_postgrad: 139 141 form_fields = grok.AutoFields(INigeriaPGStudentClearance).omit( 140 'clearance_locked', 'nysc_location' )142 'clearance_locked', 'nysc_location', 'clr_code') 141 143 else: 142 144 form_fields = grok.AutoFields(INigeriaUGStudentClearance).omit( 143 'clearance_locked' )145 'clearance_locked', 'clr_code') 144 146 return form_fields 145 147
Note: See TracChangeset for help on using the changeset viewer.