Révision d3cfbd19
Ajouté par Serghei Mihai (congés, retour 15/05) il y a presque 10 ans
calebasse/agenda/models.py | ||
---|---|---|
515 | 515 |
act.save = old_save |
516 | 516 |
old_save(*args, **kwargs) |
517 | 517 |
act.comment = self.description |
518 |
act.doctors = self.participants.select_subclasses()
|
|
518 |
act.doctors = (participant.worker for participant in self.participants.all())
|
|
519 | 519 |
last_validation_state = ActValidationState.objects.create( |
520 | 520 |
act=act, state_name='NON_VALIDE', |
521 | 521 |
author=self.creator, previous_state=None) |
Formats disponibles : Unified diff
actes: fixing empty EventWithAct object while trying to create an act. Doctors
are forced to be Worker instances instead of People(which is its parent)
Closes #4945