Ignore:
Timestamp:
21 Sep 2023, 20:40:35 (14 months ago)
Author:
Henrik Bettermann
Message:

Make more fields required.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py

    r17538 r17593  
    335335    date_of_birth = FormattedDate(
    336336        title = _(u'Date of Birth'),
    337         required = False,
     337        required = True,
    338338        #date_format = u'%d/%m/%Y', # Use grok-instance-wide default
    339339        show_year = True,
     
    373373        title = _(u'Have you collected transcript before?'),
    374374        default = False,
    375         required = False,
     375        required = True,
    376376        )
    377377
     
    379379        title = _(u'Academic Session of Entry'),
    380380        source = academic_sessions_vocab,
    381         required = False,
     381        required = True,
    382382        readonly = False,
    383383        )
     
    386386        title = _(u'Academic Session of Graduation'),
    387387        source = academic_sessions_vocab,
    388         required = False,
     388        required = True,
    389389        readonly = False,
    390390        )
     
    393393        title = _(u'Mode of Entry'),
    394394        source = StudyModeSource(),
    395         required = False,
     395        required = True,
    396396        readonly = False,
    397397        )
     
    429429        source = OrderSource(),
    430430        title = _(u'Type of Order'),
    431         required = False,
     431        required = True,
    432432        )
    433433
     
    444444        title = _(u'Transcript Charge'),
    445445        source = DestinationCostSource(),
    446         required = False,
     446        required = True,
    447447        readonly = False,
    448448        )
     
    452452        description = u'Must correspond with the number of dispatch addresses above.',
    453453        values=[1, 2, 3, 4],
    454         required = False,
     454        required = True,
    455455        readonly = False,
    456456        default = 1,
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py

    r17298 r17593  
    317317        # because managers are allowed to edit this required field
    318318        applicant.reg_number = u'12345'
     319        applicant.collected = True
    319320        self.app['applicants']['tsc1234'].addApplicant(applicant)
    320321        IUserAccount(
Note: See TracChangeset for help on using the changeset viewer.