Ignore:
Timestamp:
9 Oct 2020, 07:07:15 (4 years ago)
Author:
Henrik Bettermann
Message:

Add sponsor field to student base data.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/applicant.py

    r16142 r16273  
    3636    grok.provides(ICustomApplicant)
    3737
     38    applicant_student_mapping = NigeriaApplicant.applicant_student_mapping + [
     39        ('lga', 'lga'),
     40        ('nationality', 'nationality'),
     41        ('fst_sit_fname', 'fst_sit_fname'),
     42        ('fst_sit_no', 'fst_sit_no'),
     43        ('fst_sit_date', 'fst_sit_date'),
     44        ('fst_sit_type', 'fst_sit_type'),
     45        ('fst_sit_results', 'fst_sit_results'),
     46        ('scd_sit_fname', 'scd_sit_fname'),
     47        ('scd_sit_no', 'scd_sit_no'),
     48        ('scd_sit_date', 'scd_sit_date'),
     49        ('scd_sit_type', 'scd_sit_type'),
     50        ('scd_sit_results', 'scd_sit_results'),
     51        ('hq_type', 'hq_type'),
     52        ('hq_fname', 'hq_fname'),
     53        ('hq_matric_no', 'hq_matric_no'),
     54        ('hq_degree', 'hq_degree'),
     55        ('hq_school', 'hq_school'),
     56        ('hq_session', 'hq_session'),
     57        ('hq_disc', 'hq_disc'),
     58        # added
     59        ('sponsor', 'sponsor'),
     60        ]
     61
    3862CustomApplicant = attrs_to_fields(CustomApplicant)
    3963
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/interfaces.py

    r16272 r16273  
    3030    )
    3131from kofacustom.iuokada.payments.interfaces import ICustomOnlinePayment
     32from kofacustom.iuokada.applicants.interfaces import sponsors_vocab
    3233from kofacustom.iuokada.interfaces import MessageFactory as _
    3334
     
    4647        title = _(u'Library Id Card'),
    4748        default = False,
     49        required = False,
     50        )
     51    sponsor = schema.Choice(
     52        title = _(u'Sponsor'),
     53        vocabulary = sponsors_vocab,
    4854        required = False,
    4955        )
Note: See TracChangeset for help on using the changeset viewer.