pass pk and model_dict to deleter, dynamic load of deleters
diff --git a/planetstack/observer/__init__.py b/planetstack/observer/__init__.py
index e2a93de..0d6c550 100644
--- a/planetstack/observer/__init__.py
+++ b/planetstack/observer/__init__.py
@@ -10,14 +10,14 @@
if (not observer_disabled):
from .event_manager import EventSender
- def notify_observer(model=None, delete=False, pk=None):
+ def notify_observer(model=None, delete=False, pk=None, model_dict={}):
try:
if (model and delete):
if hasattr(model,"__name__"):
modelName = model.__name__
else:
modelName = model.__class__.__name__
- EventSender().fire(delete_flag = delete, model = modelName, pk = pk)
+ EventSender().fire(delete_flag = delete, model = modelName, pk = pk, model_dict=model_dict)
else:
EventSender().fire()
except Exception,e: