Changeset 11604 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 29 Apr 2014, 07:31:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/student.py
r10266 r11604 211 211 212 212 @property 213 def is_fresh(self): 214 return self.current_session == self.entry_session 215 216 @property 213 217 def before_payment(self): 214 entry_session = getattr(215 self.get('studycourse', None), 'entry_session', None)216 218 non_fresh_states = (PAID, REGISTERED, VALIDATED, RETURNING, ) 217 if self.current_session == entry_session and \ 218 self.state not in non_fresh_states: 219 if self.is_fresh and self.state not in non_fresh_states: 219 220 return True 220 221 return False
Note: See TracChangeset for help on using the changeset viewer.