Revision 3840893f
Added by Mikaël Ates about 13 years ago
| calebasse/agenda/views.py | ||
|---|---|---|
|
for act in acts_of_the_day:
|
||
|
state = act.get_state()
|
||
|
display_name = VALIDATION_STATES[state.state_name]
|
||
|
if not state.previous_state and state.state_name == 'NON_VALIDE':
|
||
|
if state and not state.previous_state and state.state_name == 'NON_VALIDE':
|
||
|
state = None
|
||
|
actes.append((act, state, display_name))
|
||
|
if not act.id:
|
||
| calebasse/dossiers/views.py | ||
|---|---|---|
|
ctx['last_rdvs'] = []
|
||
|
for act in Act.objects.last_acts(ctx['object']).prefetch_related('doctors'):
|
||
|
state = act.get_state()
|
||
|
if not state.previous_state and state.state_name == 'NON_VALIDE':
|
||
|
if state and not state.previous_state and state.state_name == 'NON_VALIDE':
|
||
|
state = None
|
||
|
ctx['last_rdvs'].append((act, state))
|
||
|
ctx['status'] = []
|
||
Also available in: Unified diff
agenda/dossier: There are acts without initial state.