Commit 8b6005ff by Dudás Ádám

storage: rename remove method to conform to other modules

parent e20f846e
...@@ -192,12 +192,12 @@ class Disk(TimeStampedModel): ...@@ -192,12 +192,12 @@ class Disk(TimeStampedModel):
local_tasks.deploy.apply_async(args=[self, user], local_tasks.deploy.apply_async(args=[self, user],
queue="localhost.man") queue="localhost.man")
def remove(self, user=None, task_uuid=None): def destroy(self, user=None, task_uuid=None):
# TODO add activity logging # TODO add activity logging
self.removed = timezone.now() self.removed = timezone.now()
self.save() self.save()
def remove_async(self, user=None): def destroy_async(self, user=None):
local_tasks.remove.apply_async(args=[self, user], local_tasks.remove.apply_async(args=[self, user],
queue='localhost.man') queue='localhost.man')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment