git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a70eb9
)
Added is_ephemeral: a flag that determines if a model is automatically deleted when...
author
Sapan Bhatia
<sapanb@cs.princeton.edu>
Wed, 12 Nov 2014 15:06:23 +0000
(10:06 -0500)
committer
Sapan Bhatia
<sapanb@cs.princeton.edu>
Wed, 12 Nov 2014 15:06:23 +0000
(10:06 -0500)
planetstack/core/models/plcorebase.py
patch
|
blob
|
history
diff --git
a/planetstack/core/models/plcorebase.py
b/planetstack/core/models/plcorebase.py
index
e483a79
..
782737c
100644
(file)
--- a/
planetstack/core/models/plcorebase.py
+++ b/
planetstack/core/models/plcorebase.py
@@
-201,6
+201,10
@@
class PlCoreBase(models.Model): # , DiffModelMixIn):
# filtering of visible objects by user.
return cls.objects.all()
+ @classmethod
+ def is_ephemeral(cls):
+ return False
+