Merge branch '1.1.x'

This commit is contained in:
Antoine Nguyen
2014-03-04 21:59:50 +01:00
+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]