Changeset 14104 for main


Ignore:
Timestamp:
22 Aug 2016, 09:06:47 (8 years ago)
Author:
Henrik Bettermann
Message:

Hide def_adm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py

    r14084 r14104  
    132132        else:
    133133            form_fields['officer_comment'].custom_widget = BytesDisplayWidget
     134        form_fields = form_fields.omit('def_adm')
    134135        return form_fields
    135136
     
    146147            form_fields = grok.AutoFields(
    147148                ICustomUGStudentClearance).omit('clr_code')
     149        form_fields = form_fields.omit('def_adm')
    148150        return form_fields
    149151
     
    161163            form_fields = grok.AutoFields(ICustomUGStudentClearance).omit(
    162164            'clearance_locked', 'clr_code', 'officer_comment',
    163             'physical_clearance_date')
     165            'physical_clearance_date', 'date_of_birth', 'nationality', 'lga')
     166        form_fields = form_fields.omit('def_adm')
    164167        return form_fields
    165168
     
    481484        if not getattr(self.context, 'officer_comment'):
    482485            form_fields = form_fields.omit('officer_comment')
     486        form_fields = form_fields.omit('def_adm')
    483487        return form_fields
    484488
Note: See TracChangeset for help on using the changeset viewer.