[Update] 用户profile中添加orgs

This commit is contained in:
ibuler
2020-03-20 18:21:27 +08:00
parent b25096925b
commit 9bf5d6dd45
6 changed files with 95 additions and 66 deletions

9
apps/users/api/mixins.py Normal file
View File

@@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
#
from .. import utils
class UserQuerysetMixin:
def get_queryset(self):
queryset = utils.get_current_org_members()
return queryset