commit | dbaf193d78ff895e28233c15b6c1420c945a0f7e | [log] [tgz] |
---|---|---|
author | Sapan Bhatia <gwsapan@gmail.com> | Tue Sep 03 11:28:52 2013 -0400 |
committer | Sapan Bhatia <gwsapan@gmail.com> | Tue Sep 03 11:28:52 2013 -0400 |
tree | 224425a8e138cb469b68f3e3bf05b115f4334492 | |
parent | b9c593463dbbd26d85aeece5374a7397a4292e8d [diff] [blame] |
Abstracted out deleters
diff --git a/planetstack/observer/deleters/slice_deleter.py b/planetstack/observer/deleters/slice_deleter.py new file mode 100644 index 0000000..4cb0a72 --- /dev/null +++ b/planetstack/observer/deleters/slice_deleter.py
@@ -0,0 +1,9 @@ +#from code.models import Slice + +class SliceDeleter: + model='Slice' + + def call(self, pk): + s = Slice.objects.get(pk=pk) + + # Proceed with delete