Changeset 15843


Ignore:
Timestamp:
25 Nov 2019, 11:04:39 (5 years ago)
Author:
Henrik Bettermann
Message:

Show correct buttons if payment state in ('paid', 'waived', 'scholarship').

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/viewlets.py

    r14948 r15843  
    296296    @property
    297297    def target_url(self):
    298         if self.context.p_state == 'paid':
     298        if self.context.p_state in ('paid', 'waived', 'scholarship'):
    299299            return ''
    300300        return self.view.url(self.view.context, self.target)
  • main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py

    r15820 r15843  
    540540    @property
    541541    def target_url(self):
    542         if self.context.p_state == 'paid':
     542        if self.context.p_state in ('paid', 'waived', 'scholarship'):
    543543            return ''
    544544        return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.