Changeset 14696


Ignore:
Timestamp:
19 Jun 2017, 11:48:37 (7 years ago)
Author:
Henrik Bettermann
Message:

Do it right.

File:
1 edited

Legend:

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

    r14695 r14696  
    421421            form_fields['applicant_id'].for_display = True
    422422            form_fields['reg_number'].for_display = True
     423            # Additional omissions
     424            if self.context.__parent__.code == 'cert5':
     425                for field in ('firstname', 'middlename', 'lastname'):
     426                    form_fields[field].for_display = True
    423427            return form_fields
    424428        # AAUE is using the same interface for all regular applications.
     
    437441                form_fields = form_fields.omit(field)
    438442        # Additional omissions
    439         if self.target is not None and (self.target in ('ude', 'utme') \
    440             or self.context.__parent__.code == 'cert5'):
     443        if self.target is not None and self.target in ('ude', 'utme'):
    441444            for field in UPDATE_OMIT_FIELDS:
    442445                form_fields[field].for_display = True
Note: See TracChangeset for help on using the changeset viewer.