Changeset 11656
- Timestamp:
- 16 May 2014, 08:37:29 (11 years ago)
- Location:
- main/waeup.kwarapoly/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/CHANGES.txt
r11646 r11656 4 4 1.2dev (unreleased) 5 5 =================== 6 7 * Fixed: Special applicants must not be able to edit locked, suspended 8 and applicant_id fields. 6 9 7 10 * Use init_update and samePaymentMade methods. -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/browser.py
r10847 r11656 128 128 def form_fields(self): 129 129 if self.context.special: 130 return grok.AutoFields(ISpecialApplicant) 130 form_fields = grok.AutoFields(ISpecialApplicant) 131 form_fields['applicant_id'].for_display = True 132 return form_fields 131 133 form_fields = grok.AutoFields(ICustomUGApplicant) 132 134 if self.context.is_nd: … … 148 150 149 151 if self.context.special: 150 return grok.AutoFields(ISpecialApplicant) 152 form_fields = grok.AutoFields(ISpecialApplicant).omit( 153 'locked', 'suspended') 154 form_fields['applicant_id'].for_display = True 155 return form_fields 151 156 form_fields = grok.AutoFields(ICustomUGApplicantEdit) 152 157 if self.context.is_nd:
Note: See TracChangeset for help on using the changeset viewer.