Projet

Général

Profil

« Précédent | Suivant » 

Révision c14fdef9

Ajouté par Jérôme Schneider il y a presque 10 ans

dossiers: fix tab1 for new patient

Voir les différences:

calebasse/dossiers/views.py
270 270
        ctx['last_rdv'] = get_last_rdv(ctx['object'])
271 271
        ctx['next_rdv'] = get_next_rdv(ctx['object'])
272 272
        current_state = ctx['object'].get_current_state()
273
        if STATES_MAPPING.has_key(current_state.status.type):
273
        if current_state.status and STATES_MAPPING.has_key(current_state.status.type):
274 274
            state = STATES_MAPPING[current_state.status.type]
275 275
        else:
276
            state = current_state.status.name
276
            state = current
277 277
        ctx['current_state'] = current_state
278 278
        ctx['status'], ctx['hc_status'] = get_status(ctx, self.request.user)
279 279
        ctx['missing_policy'] = False

Formats disponibles : Unified diff