Ignore:
Timestamp:
2 Aug 2024, 19:42:07 (5 months ago)
Author:
Henrik Bettermann
Message:

Customize final clearance. Enable final clearance for all ‚Demo‘ students.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
2 edited

Legend:

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

    r17864 r17870  
    9696    form_fields[
    9797        'financial_clearance_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     98    form_fields[
     99        'final_clearance_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    98100
    99101class CustomStudentBaseManageFormPage(NigeriaStudentBaseManageFormPage):
     
    103105        'student_id', 'adm_code', 'suspended',
    104106        'financially_cleared_by', 'financial_clearance_date',
     107        'finally_cleared_by', 'final_clearance_date',
    105108        'parents_email')
    106109
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r17814 r17870  
    832832    SIGNATURE_CHANGE_STATES = (CLEARED, RETURNING, PAID, REGISTERED, VALIDATED, )
    833833
     834    def final_clearance_enabled(self, student):
     835        if 'Demo' in student.display_fullname:
     836            return True
     837        return False
     838
    834839    # Uniben prefix
    835840    @property
Note: See TracChangeset for help on using the changeset viewer.