Adding missing file.

This commit is contained in:
Antoine Nguyen
2014-03-04 21:59:02 +01:00
parent 8cec810a54
commit 1346cf9ce1
+11
View File
@@ -0,0 +1,11 @@
"""
Custom signals.
"""
from django.dispatch import Signal
request_accessor = Signal()
def get_request():
"""Get the current request from anywhere.
"""
return request_accessor.send(None)[0][1]