Revision 55dfa03a
Added by Jérôme Schneider almost 12 years ago
calebasse/actes/models.py | ||
---|---|---|
190 | 190 |
if not state_name in VALIDATION_STATES.keys(): |
191 | 191 |
raise Exception("Etat d'acte non existant %s") |
192 | 192 |
current_state = self.get_state() |
193 |
last_validation_state = ActValidationState(act=self, |
|
193 |
last_validation_state = ActValidationState.objects.create( |
|
194 |
act=self, |
|
194 | 195 |
state_name=state_name, |
195 | 196 |
author=author, |
196 |
previous_state=current_state).save()
|
|
197 |
previous_state=current_state) |
|
197 | 198 |
self.last_validation_state = last_validation_state |
198 | 199 |
if state_name == 'VALIDE': |
199 | 200 |
self.valide = True |
Also available in: Unified diff
actes: fix last_validation state save into set_state