Revision 32061a0e
Added by Jérôme Schneider almost 13 years ago
| calebasse/dossiers/views.py | ||
|---|---|---|
|
status = self.object.patient.filestate_set.all().order_by('-created')
|
||
|
if len(status) > 1:
|
||
|
self.object.patient.last_state = status[1]
|
||
|
self.object.patient.save()
|
||
|
else:
|
||
|
# TODO return an error here
|
||
|
return HttpResponseRedirect(self.get_success_url())
|
||
Also available in: Unified diff
dossiers: fix status delation