|
|
@@ -37,7 +37,7 @@ def _record_object_deleted(request, instance, **kwargs):
|
|
|
if hasattr(instance, 'log_change'):
|
|
|
instance.log_change(request.user, request.id, OBJECTCHANGE_ACTION_DELETE)
|
|
|
|
|
|
- enqueue_webhooks(instance, request.user, OBJECTCHANGE_ACTION_DELETE)
|
|
|
+ enqueue_webhooks(instance, request.user, request.id, OBJECTCHANGE_ACTION_DELETE)
|
|
|
|
|
|
|
|
|
class ObjectChangeMiddleware(object):
|
|
|
@@ -83,7 +83,7 @@ class ObjectChangeMiddleware(object):
|
|
|
obj.log_change(request.user, request.id, action)
|
|
|
|
|
|
# Enqueue webhooks
|
|
|
- enqueue_webhooks(obj, request.user, action)
|
|
|
+ enqueue_webhooks(obj, request.user, request.id, action)
|
|
|
|
|
|
# Housekeeping: 1% chance of clearing out expired ObjectChanges
|
|
|
if _thread_locals.changed_objects and settings.CHANGELOG_RETENTION and random.randint(1, 100) == 1:
|