* [Update] 添加org api, 升级到django 2.0

* [Update] fix some bug

* [Update] 修改一些bug
This commit is contained in:
老广
2018-07-24 22:21:12 -05:00
committed by GitHub
parent c816875f28
commit b156f4ad16
28 changed files with 200 additions and 87 deletions

View File

@@ -16,6 +16,8 @@ _thread_locals = local()
def get_org_from_request(request):
oid = request.session.get("oid")
if not oid:
oid = request.META.get("HTTP_X_JMS_ORG")
org = Organization.get_instance(oid)
return org