dossiers: fix state name for tab1

This commit is contained in:
Jérôme Schneider 2014-06-16 09:56:02 +02:00
parent d3cfbd19d1
commit c0ae5eb962
1 changed files with 3 additions and 1 deletions

View File

@ -272,8 +272,10 @@ class PatientRecordGeneralView(cbv.UpdateView):
current_state = ctx['object'].get_current_state()
if current_state.status and STATES_MAPPING.has_key(current_state.status.type):
state = STATES_MAPPING[current_state.status.type]
elif current_state.status:
state = current_state.status.name
else:
state = current
state = "Aucun"
ctx['current_state'] = current_state
ctx['status'], ctx['hc_status'] = get_status(ctx, self.request.user)
ctx['missing_policy'] = False