commit | 130278134f19945d61e26bbd80d3f5416a8294df | [log] [tgz] |
---|---|---|
author | Sapan Bhatia <gwsapan@gmail.com> | Wed Apr 30 00:51:02 2014 -0400 |
committer | Sapan Bhatia <gwsapan@gmail.com> | Wed Jul 23 16:20:22 2014 -0400 |
tree | 52e89a3977c164c0fe44a5b9cff76a01e8d5d46e | |
parent | 285decbfb49359489309449c60de59216d9ca94b [diff] |
Purge operation.
diff --git a/planetstack/core/models/plcorebase.py b/planetstack/core/models/plcorebase.py index fc8e740..51240ad 100644 --- a/planetstack/core/models/plcorebase.py +++ b/planetstack/core/models/plcorebase.py
@@ -72,7 +72,8 @@ def delete(self, *args, **kwds): # so we have something to give the observer - if (observer_disabled): + purge = kwds.get('purge',True) + if (observer_disabled or purge): super(PlCoreBase, self).delete(*args, **kwargs) else: self.deleted = True