Revision 3840893f
Added by Mikaël Ates about 12 years ago
calebasse/agenda/views.py | ||
---|---|---|
264 | 264 |
for act in acts_of_the_day: |
265 | 265 |
state = act.get_state() |
266 | 266 |
display_name = VALIDATION_STATES[state.state_name] |
267 |
if not state.previous_state and state.state_name == 'NON_VALIDE': |
|
267 |
if state and not state.previous_state and state.state_name == 'NON_VALIDE':
|
|
268 | 268 |
state = None |
269 | 269 |
actes.append((act, state, display_name)) |
270 | 270 |
if not act.id: |
Also available in: Unified diff
agenda/dossier: There are acts without initial state.