We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5fccda commit b4c9d64Copy full SHA for b4c9d64
concurrency/middleware.py
@@ -1,4 +1,5 @@
1
# -*- coding: utf-8 -*-
2
+from django.core.signals import got_request_exception
3
from django.core.urlresolvers import get_callable
4
from concurrency.core import RecordModifiedError
5
from concurrency.views import handler409
@@ -9,6 +10,6 @@
9
10
class ConcurrencyMiddleware(object):
11
def process_exception(self, request, exception):
12
if isinstance(exception, RecordModifiedError):
13
+ got_request_exception.send(sender=self, request=request)
14
callback = get_callable(handler409)
-
15
return callback(request, target=exception.target)
0 commit comments