Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Raise decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword Str keyword Call NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign NameStore Call NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert CompareIn AttributeLoad NameLoad attr TupleLoad Str Str BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad Dict Str Str NameLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assert CompareIn AttributeLoad NameLoad attr TupleLoad Str Str BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad Dict Str Str NameLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad NameLoad body Return NameLoad Raise Call NameLoad BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults body Assert AttributeLoad NameLoad attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr If CompareEq NameLoad Str body Return Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Str TupleLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad keyword NameLoad Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults Call NameLoad SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Call AttributeLoad NameLoad attr Str NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore SubscriptLoad NameLoad Index Str body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr If CompareEq NameLoad Str body Return Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Str TupleLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults Call NameLoad SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Call AttributeLoad NameLoad attr Str NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore SubscriptLoad NameLoad Index Str body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str decorator_list
N/A N/A logging django.conf settings django.contrib.auth.models Group django.http Http404 django_auth_ldap.backend LDAPBackend guardian.shortcuts get_groups_with_perms get_users_with_perms remove_perm rest_framework viewsets rest_framework.serializers ListField SlugRelatedField ValidationError stackdio.api.users.models get_user_queryset shortcuts get_groups_with_model_perms get_users_with_model_perms N/A fields serializers N/A logger N/A N/A logging getLogger __name__ _filter_perms N/A N/A available_perms perms N/A N/A N/A ret N/A N/A perm perms N/A N/A N/A perm available_perms N/A N/A N/A N/A ret append perm N/A ret N/A UserSlugRelatedField N/A SlugRelatedField N/A to_internal_value N/A N/A self data N/A N/A N/A N/A N/A N/A N/A N/A super UserSlugRelatedField self to_internal_value data N/A N/A N/A ValidationError N/A N/A N/A settings LDAP_ENABLED N/A N/A user N/A N/A N/A LDAPBackend populate_user data N/A N/A user None N/A N/A N/A N/A N/A super UserSlugRelatedField self to_internal_value data N/A N/A N/A StackdioBasePermissionsViewSet N/A N/A viewsets ModelViewSet N/A N/A 
    Viewset for creating permissions endpoints
     N/A user_or_group None N/A model_or_object None N/A lookup_value_regex [\w.@+-]+ N/A parent_lookup_field pk N/A parent_lookup_url_kwarg None get_model_name N/A N/A self N/A N/A N/A N/A NotImplementedError `get_model_name()` must be implemented. N/A get_app_label N/A N/A self N/A N/A N/A N/A NotImplementedError `get_app_label()` must be implemented. N/A get_serializer_class N/A N/A self N/A N/A N/A user_or_group N/A N/A self get_user_or_group N/A model_or_object N/A N/A self get_model_or_object N/A model_name N/A N/A self get_model_name N/A app_label N/A N/A self get_app_label N/A super_cls N/A N/A self switch_model_object N/A serializers StackdioModelPermissionsSerializer N/A serializers StackdioObjectPermissionsSerializer N/A url_field_kwargs N/A view_name permission_lookup_field permission_lookup_url_kwarg lookup_field lookup_url_kwarg N/A N/A api:{0}:{1}-{2}-{3}-permissions-detail format app_label model_name model_or_object user_or_group N/A self lookup_field N/A N/A self lookup_url_kwarg N/A self lookup_field N/A self parent_lookup_field N/A N/A self parent_lookup_url_kwarg N/A self parent_lookup_field N/A url_field N/A N/A self switch_model_object N/A N/A fields HyperlinkedModelPermissionsField url_field_kwargs N/A N/A fields HyperlinkedObjectPermissionsField url_field_kwargs StackdioUserPermissionsSerializer N/A super_cls N/A N/A user N/A UserSlugRelatedField slug_field username queryset N/A get_user_queryset N/A url url_field N/A permissions N/A ListField N/A StackdioGroupPermissionsSerializer N/A super_cls N/A N/A group N/A SlugRelatedField slug_field name queryset N/A N/A N/A Group objects all N/A url url_field N/A permissions N/A ListField N/A N/A N/A N/A self switch_user_group StackdioUserPermissionsSerializer StackdioGroupPermissionsSerializer N/A get_user_or_group N/A N/A self N/A N/A N/A N/A N/A self user_or_group N/A user group N/A '%s' should include a `user_or_group` attribute that is one of 'user' or 'group'. N/A N/A self __class__ __name__ N/A N/A self user_or_group N/A switch_user_group N/A N/A self if_user if_group N/A N/A N/A N/A N/A N/A user group if_user if_group get N/A N/A self get_user_or_group N/A get_model_or_object N/A N/A self N/A N/A N/A N/A N/A self model_or_object N/A model object N/A '%s' should include a `model_or_object` attribute that is one of 'model' or 'object'. N/A N/A self __class__ __name__ N/A N/A self model_or_object N/A switch_model_object N/A N/A self if_model if_object N/A N/A N/A N/A N/A N/A model object if_model if_object get N/A N/A self get_model_or_object N/A _transform_perm N/A N/A self model_name N/A N/A do_tranform N/A N/A item N/A N/A N/A N/A perm sep empty N/A N/A item partition N/A _ model_name N/A perm N/A N/A do_tranform N/A get_object N/A N/A self N/A N/A N/A queryset N/A N/A self get_queryset N/A url_kwarg N/A N/A self lookup_url_kwarg N/A self lookup_field N/A name_attr N/A N/A self switch_user_group username name N/A obj queryset N/A N/A auth_obj N/A obj N/A N/A N/A self get_user_or_group N/A N/A N/A N/A self kwargs N/A url_kwarg N/A getattr auth_obj name_attr N/A N/A obj N/A N/A Http404 N/A No permissions found for %s N/A N/A self kwargs N/A url_kwarg N/A N/A StackdioModelPermissionsViewSet N/A StackdioBasePermissionsViewSet N/A N/A model_cls None N/A model_or_object model get_model_cls N/A N/A self N/A N/A N/A N/A self model_cls N/A '%s' should include a `model_cls` attribute or override the `get_model_cls()` method. N/A N/A self __class__ __name__ N/A N/A self model_cls N/A get_model_name N/A N/A self N/A N/A N/A N/A N/A N/A N/A self get_model_cls _meta model_name N/A get_app_label N/A N/A self N/A N/A N/A ret N/A N/A N/A N/A self get_model_cls _meta app_label N/A N/A ret auth N/A N/A users N/A ret N/A get_model_permissions N/A N/A self N/A N/A N/A N/A getattr N/A N/A self get_model_cls model_permissions N/A getattr self model_permissions N/A N/A get_queryset N/A N/A self N/A N/A N/A model_cls N/A N/A self get_model_cls N/A model_name N/A N/A model_cls _meta model_name N/A model_perms N/A N/A self get_model_permissions N/A perm_map N/A N/A self switch_user_group N/A get_users_with_model_perms model_cls attach_perms True with_group_users False N/A get_groups_with_model_perms model_cls attach_perms True N/A ret N/A N/A sorted_perms N/A sorted N/A N/A perm_map items key N/A N/A N/A x N/A N/A getattr N/A x N/A 0 N/A self lookup_field N/A N/A auth_obj perms sorted_perms N/A N/A new_perms N/A map N/A N/A self _transform_perm model_name perms N/A N/A N/A ret append N/A N/A N/A self get_user_or_group permissions auth_obj N/A _filter_perms model_perms new_perms N/A ret N/A list N/A N/A self request N/A args kwargs N/A N/A response N/A N/A N/A super StackdioModelPermissionsViewSet self list request args kwargs N/A N/A N/A response data N/A available_permissions N/A sorted N/A N/A self get_model_permissions N/A response N/A perform_create N/A N/A self serializer N/A N/A N/A N/A N/A serializer save model_cls N/A N/A self get_model_cls N/A perform_update N/A N/A self serializer N/A N/A N/A N/A N/A serializer save model_cls N/A N/A self get_model_cls N/A perform_destroy N/A N/A self instance N/A N/A N/A model_cls N/A N/A self get_model_cls N/A app_label N/A N/A model_cls _meta app_label N/A model_name N/A N/A model_cls _meta model_name N/A perm N/A instance N/A permissions N/A N/A N/A remove_perm N/A %s.%s_%s N/A app_label perm model_name N/A instance N/A N/A N/A self get_user_or_group N/A N/A StackdioModelUserPermissionsViewSet N/A StackdioModelPermissionsViewSet N/A N/A user_or_group user N/A lookup_field username N/A lookup_url_kwarg username N/A StackdioModelGroupPermissionsViewSet N/A StackdioModelPermissionsViewSet N/A N/A user_or_group group N/A lookup_field name N/A lookup_url_kwarg groupname N/A StackdioObjectPermissionsViewSet N/A StackdioBasePermissionsViewSet N/A N/A 
    Viewset for creating permissions endpoints
     N/A model_or_object object get_permissioned_object N/A N/A self N/A N/A N/A N/A NotImplementedError `get_permissioned_object()` must be implemented. N/A get_model_name N/A N/A self N/A N/A N/A N/A N/A N/A N/A self get_permissioned_object _meta model_name N/A get_app_label N/A N/A self N/A N/A N/A ret N/A N/A N/A N/A self get_permissioned_object _meta app_label N/A N/A ret auth N/A N/A users N/A ret N/A get_object_permissions N/A N/A self N/A N/A N/A N/A getattr N/A N/A self get_permissioned_object object_permissions N/A getattr self object_permissions N/A N/A get_queryset N/A N/A self N/A N/A N/A obj N/A N/A self get_permissioned_object N/A model_name N/A N/A obj _meta model_name N/A object_perms N/A N/A self get_object_permissions N/A perm_map N/A N/A self switch_user_group N/A get_users_with_perms obj attach_perms True with_superusers False with_group_users False N/A get_groups_with_perms obj attach_perms True N/A ret N/A N/A sorted_perms N/A sorted N/A N/A perm_map items key N/A N/A N/A x N/A N/A getattr N/A x N/A 0 N/A self lookup_field N/A N/A auth_obj perms sorted_perms N/A N/A new_perms N/A map N/A N/A self _transform_perm model_name perms N/A N/A N/A ret append N/A N/A N/A self get_user_or_group permissions auth_obj N/A _filter_perms object_perms new_perms N/A ret N/A list N/A N/A self request N/A args kwargs N/A N/A response N/A N/A N/A super StackdioObjectPermissionsViewSet self list request args kwargs N/A N/A N/A response data N/A available_permissions N/A sorted N/A N/A self get_object_permissions N/A response N/A perform_create N/A N/A self serializer N/A N/A N/A N/A N/A serializer save object N/A N/A self get_permissioned_object N/A perform_update N/A N/A self serializer N/A N/A N/A N/A N/A serializer save object N/A N/A self get_permissioned_object N/A perform_destroy N/A N/A self instance N/A N/A N/A obj N/A N/A self get_permissioned_object N/A app_label N/A N/A obj _meta app_label N/A model_name N/A N/A obj _meta model_name N/A perm N/A instance N/A permissions N/A N/A N/A remove_perm N/A %s.%s_%s N/A app_label perm model_name N/A instance N/A N/A N/A self get_user_or_group obj N/A N/A StackdioObjectUserPermissionsViewSet N/A StackdioObjectPermissionsViewSet N/A N/A user_or_group user N/A lookup_field username N/A lookup_url_kwarg username N/A StackdioObjectGroupPermissionsViewSet N/A StackdioObjectPermissionsViewSet N/A N/A user_or_group group N/A lookup_field name N/A lookup_url_kwarg groupname N/A