Changeset 10201


Ignore:
Timestamp:
22 May 2013, 19:00:00 (12 years ago)
Author:
Henrik Bettermann
Message:

Omit custom fields in views.

Fix test.

Location:
main/waeup.fceokene/trunk/src/waeup/fceokene
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/browser/pages.py

    r9143 r10201  
    3838    """
    3939    form_fields = grok.AutoFields(ICertificate).omit(
    40         'school_fee_1', 'school_fee_2', 'school_fee_3', 'school_fee_4')
     40        'school_fee_1', 'school_fee_2', 'school_fee_3', 'school_fee_4', 'ratio',
     41        'custom_textline_1', 'custom_textline_2',
     42        'custom_float_1', 'custom_float_2')
    4143
    4244class CustomCertificateManageFormPage(CertificateManageFormPage):
     
    4446    """
    4547    form_fields = grok.AutoFields(ICertificate).omit(
    46         'school_fee_1', 'school_fee_2', 'school_fee_3', 'school_fee_4')
     48        'school_fee_1', 'school_fee_2', 'school_fee_3', 'school_fee_4', 'ratio',
     49        'custom_textline_1', 'custom_textline_2',
     50        'custom_float_1', 'custom_float_2')
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py

    r10019 r10201  
    250250        self.certificate.study_mode = 'ug_ft'
    251251        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    252         self.assertEqual(payment.amount_auth, 65150.0)
     252        self.assertEqual(payment.amount_auth, 65650.0)
    253253        self.assertEqual(error, None)
    254254
Note: See TracChangeset for help on using the changeset viewer.