Add TODO comments for mailbox task calls
This commit is contained in:
parent
f2c3f64a87
commit
6533205479
1 changed files with 2 additions and 0 deletions
|
@ -130,10 +130,12 @@ class Mailbox(ActivateAbleMixin, TimeStampedModel):
|
|||
self.password = sha512_crypt.encrypt(password)
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
# TODO: refactor to use signals
|
||||
create_file_mailbox.delay(self.osuser.username, self.username).get()
|
||||
super(Mailbox, self).save(*args, **kwargs)
|
||||
|
||||
def delete(self, *args, **kwargs):
|
||||
# TODO: refactor to use signals
|
||||
delete_file_mailbox.delay(self.osuser.username, self.username).get()
|
||||
super(Mailbox, self).delete(*args, **kwargs)
|
||||
|
||||
|
|
Loading…
Reference in a new issue