Ignore:
Timestamp:
19 Jul 2019, 13:49:20 (5 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes in base package.

File:
1 edited

Legend:

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

    r15487 r15506  
    295295    @property
    296296    def custom_requirements(self):
    297         store = getUtility(IExtFileStore)
    298         if not store.getFileByContext(self.context, attr=u'passport.jpg'):
    299             return _('Upload your 1"x1" Red background passport photo before making payment.')
     297        if self.context.__parent__.with_picture:
     298            store = getUtility(IExtFileStore)
     299            if not store.getFileByContext(self.context, attr=u'passport.jpg'):
     300                return _('Upload your 1"x1" Red background passport photo before making payment.')
    300301        return ''
    301302
Note: See TracChangeset for help on using the changeset viewer.