commit | e33b9dc85de42fce95cf85df7323fa93d026250e | [log] [tgz] |
---|---|---|
author | Sapan Bhatia <sapanb@cs.princeton.edu> | Wed Nov 12 10:06:23 2014 -0500 |
committer | Sapan Bhatia <sapanb@cs.princeton.edu> | Wed Nov 12 10:06:23 2014 -0500 |
tree | e57cb3119d51c949dda3d3c045daa7e73f4320e5 | |
parent | 0fb256edbeffd1813cbfa65b01d9cf6997b39584 [diff] [blame] |
Added is_ephemeral: a flag that determines if a model is automatically deleted when its related models are deleted
diff --git a/planetstack/core/models/plcorebase.py b/planetstack/core/models/plcorebase.py index e483a79..782737c 100644 --- a/planetstack/core/models/plcorebase.py +++ b/planetstack/core/models/plcorebase.py
@@ -201,6 +201,10 @@ # filtering of visible objects by user. return cls.objects.all() + @classmethod + def is_ephemeral(cls): + return False +