mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Merge branch '1.1.x'
This commit is contained in:
@@ -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]
|
||||
Reference in New Issue
Block a user