Revision c4d2d185
Added by Serghei Mihai over 10 years ago
calebasse/actes/models.py | ||
---|---|---|
221 | 221 |
# END Specific to sessad healthcare |
222 | 222 |
|
223 | 223 |
def save(self, *args, **kwargs): |
224 |
super(Act, self).save(*args, **kwargs) |
|
224 |
if self.parent_event and not self.parent_event.canceled: |
|
225 |
super(Act, self).save(*args, **kwargs) |
|
225 | 226 |
|
226 | 227 |
def duration(self): |
227 | 228 |
'''Return a displayable duration for this field.''' |
Also available in: Unified diff
actes: an act is saved only if its event is not canceled
Closes #4075