Ignore:
Timestamp:
27 Sep 2012, 21:46:03 (12 years ago)
Author:
Henrik Bettermann
Message:

clr_code must not be editable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/browser.py

    r9248 r9249  
    125125    def form_fields(self):
    126126        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')
    130132        return form_fields
    131133
     
    138140        if self.context.is_postgrad:
    139141            form_fields = grok.AutoFields(INigeriaPGStudentClearance).omit(
    140             'clearance_locked', 'nysc_location')
     142            'clearance_locked', 'nysc_location', 'clr_code')
    141143        else:
    142144            form_fields = grok.AutoFields(INigeriaUGStudentClearance).omit(
    143             'clearance_locked')
     145            'clearance_locked', 'clr_code')
    144146        return form_fields
    145147
Note: See TracChangeset for help on using the changeset viewer.