mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
add a middleware to handle http request for switch currently site
This commit is contained in:
parent
eaf15b3a8a
commit
1b7d14a1fc
1 changed files with 3 additions and 1 deletions
|
|
@ -14,4 +14,6 @@ class RecordRequestMiddleware(MiddlewareMixin):
|
|||
|
||||
|
||||
def get_request():
|
||||
return _request[0]
|
||||
if _request:
|
||||
return _request[0]
|
||||
return None
|
||||
Loading…
Reference in a new issue