mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-01 12:03:55 +01: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