Project

General

Profile

« Previous | Next » 

Revision 3840893f

Added by Mikaël Ates about 13 years ago

agenda/dossier: There are acts without initial state.

View differences:

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