also allow 'silent' to be set as an instance variable
diff --git a/planetstack/core/models/plcorebase.py b/planetstack/core/models/plcorebase.py
index 4263f94..8d657a7 100644
--- a/planetstack/core/models/plcorebase.py
+++ b/planetstack/core/models/plcorebase.py
@@ -69,6 +69,7 @@
def __init__(self, *args, **kwargs):
super(PlCoreBase, self).__init__(*args, **kwargs)
self.__initial = self._dict
+ self.silent = False
@property
def diff(self):
@@ -113,10 +114,10 @@
self.save(update_fields=['enacted','deleted'], silent=silent)
def save(self, *args, **kwargs):
+ # let the user specify silence as either a kwarg or an instance varible
+ silent = self.silent
if "silent" in kwargs:
- silent=kwargs.pop("silent")
- else:
- silent=False
+ silent=silent or kwargs.pop("silent")
super(PlCoreBase, self).save(*args, **kwargs)