Revision 0acdd88a
Added by Benjamin Dauvergne over 13 years ago
| calebasse/agenda/models.py | ||
|---|---|---|
|
return [self]
|
||
|
|
||
|
def save(self, *args, **kwargs):
|
||
|
assert self.recurrence_periodicity is None or self.exception_to is None
|
||
|
self.clean() # force call to clean to initialize recurrence fields
|
||
|
super(Event, self).save(*args, **kwargs)
|
||
|
|
||
Also available in: Unified diff
agenda: add assertion to prevent event exception with periodicity field not None