Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
809d0cbb
authored
Sep 20, 2013
by
Dudás Ádám
Committed by
Your Name
Sep 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: use delete() method on model instead of post_delete signal
parent
ca16a380
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
+1
-5
circle/storage/models.py
+1
-5
No files found.
circle/storage/models.py
View file @
809d0cbb
...
...
@@ -4,7 +4,6 @@ import logging
import
uuid
from
django.db
import
models
from
django.db.models.signals
import
post_delete
from
django.utils.translation
import
ugettext_lazy
as
_
from
model_utils.models
import
TimeStampedModel
from
sizefield.models
import
FileSizeField
...
...
@@ -145,10 +144,7 @@ class Disk(TimeStampedModel):
self
.
save
()
return
True
@classmethod
def
delete_signal
(
cls
,
sender
,
instance
,
using
,
**
kwargs
):
def
delete
(
self
):
# TODO
# StorageDriver.delete_disk.delay(instance.to_json()).get()
pass
post_delete
.
connect
(
Disk
.
delete_signal
,
sender
=
Disk
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment