[Update] 添加org

This commit is contained in:
ibuler
2018-07-13 00:00:35 +08:00
parent 01185a2d07
commit ad3214641d
15 changed files with 259 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
#
from .utils import get_current_org
from .models import Organization
def org_processor(request):
context = {
'ADMIN_ORGS': Organization.get_user_admin_orgs(request.user),
'CURRENT_ORG': get_current_org(),
}
return context