Module ImportFrom alias Import alias Import alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad ClassDef bases AttributeLoad NameLoad attr body ClassDef bases body Assign NameStore NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore ListLoad AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore ListLoad AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore ListLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore ListLoad AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad attr NameLoad Return BinOpMod Str NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr Call NameLoad Str Str Assign AttributeStore NameLoad attr Call NameLoad Str Str Assign AttributeStore NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad Call NameLoad keyword Str attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Str keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Str TupleLoad Dict Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Str keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Str keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Str keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Str keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Num ClassDef bases body Assign NameStore Str Assign NameStore TupleLoad TupleLoad Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body ClassDef bases body Assign NameStore NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str Str Str Str Str Str Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str Str Str Str Call NameLoad Str Str Str Call NameLoad Str Str Str Call NameLoad Str Str Str Call NameLoad Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Str attr Assign NameStore Dict Str Str Str Call NameLoad Str NameLoad Call NameLoad Str NameLoad Call NameLoad Str NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Dict For NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Str keyword Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Str keyword Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Str keyword Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad decorator_list decorator_list Call AttributeLoad NameLoad attr NameLoad Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad keyword Str attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore Call NameLoad Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ unicode_literals N/A base64 N/A unittest django.contrib.auth.models Group Permission User django.core.urlresolvers ResolverMatch django.db models django.test TestCase rest_framework HTTP_HEADER_ENCODING authentication generics permissions serializers status rest_framework.compat guardian rest_framework.filters DjangoObjectPermissionsFilter rest_framework.routers DefaultRouter rest_framework.test APIRequestFactory tests.models BasicModel N/A factory N/A APIRequestFactory BasicSerializer N/A N/A serializers ModelSerializer N/A Meta N/A N/A N/A model BasicModel N/A N/A RootView N/A N/A generics ListCreateAPIView N/A N/A queryset N/A N/A N/A BasicModel objects all N/A serializer_class BasicSerializer N/A authentication_classes N/A N/A authentication BasicAuthentication N/A permission_classes N/A N/A permissions DjangoModelPermissions N/A InstanceView N/A N/A generics RetrieveUpdateDestroyAPIView N/A N/A queryset N/A N/A N/A BasicModel objects all N/A serializer_class BasicSerializer N/A authentication_classes N/A N/A authentication BasicAuthentication N/A permission_classes N/A N/A permissions DjangoModelPermissions N/A GetQuerySetListView N/A N/A generics ListCreateAPIView N/A N/A serializer_class BasicSerializer N/A authentication_classes N/A N/A authentication BasicAuthentication N/A permission_classes N/A N/A permissions DjangoModelPermissions get_queryset N/A N/A self N/A N/A N/A N/A N/A N/A BasicModel objects all N/A N/A EmptyListView N/A N/A generics ListCreateAPIView N/A N/A queryset N/A N/A N/A BasicModel objects none N/A serializer_class BasicSerializer N/A authentication_classes N/A N/A authentication BasicAuthentication N/A permission_classes N/A N/A permissions DjangoModelPermissions N/A N/A root_view N/A N/A RootView as_view N/A api_root_view N/A N/A N/A DefaultRouter get_api_root_view N/A instance_view N/A N/A InstanceView as_view N/A get_queryset_list_view N/A N/A GetQuerySetListView as_view N/A empty_list_view N/A N/A EmptyListView as_view basic_auth_header N/A N/A username password N/A N/A N/A credentials N/A %s:%s N/A username password N/A base64_credentials N/A N/A N/A N/A base64 b64encode N/A N/A credentials encode HTTP_HEADER_ENCODING decode HTTP_HEADER_ENCODING N/A N/A Basic %s base64_credentials N/A ModelPermissionsIntegrationTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A User objects create_user disallowed disallowed@example.com password N/A user N/A N/A N/A User objects create_user permitted permitted@example.com password N/A N/A user user_permissions N/A N/A N/A N/A Permission objects get codename add_basicmodel N/A N/A N/A Permission objects get codename change_basicmodel N/A N/A N/A Permission objects get codename delete_basicmodel N/A user N/A N/A N/A User objects create_user updateonly updateonly@example.com password N/A N/A user user_permissions N/A N/A N/A N/A Permission objects get codename change_basicmodel N/A N/A self permitted_credentials N/A basic_auth_header permitted password N/A N/A self disallowed_credentials N/A basic_auth_header disallowed password N/A N/A self updateonly_credentials N/A basic_auth_header updateonly password N/A N/A N/A N/A BasicModel text foo save N/A test_has_create_permissions N/A N/A self N/A N/A N/A request N/A N/A factory post / N/A text foobar format json HTTP_AUTHORIZATION N/A self permitted_credentials N/A response N/A root_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_201_CREATED N/A test_api_root_view_discard_default_django_model_permission N/A N/A self N/A N/A N/A 
        We check that DEFAULT_PERMISSION_CLASSES can
        apply to APIRoot view. More specifically we check expected behavior of
        ``_ignore_model_permissions`` attribute support.
         N/A request N/A N/A factory get / format json HTTP_AUTHORIZATION N/A self permitted_credentials N/A N/A request resolver_match N/A ResolverMatch get N/A N/A N/A response N/A api_root_view request N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A test_get_queryset_has_create_permissions N/A N/A self N/A N/A N/A request N/A N/A factory post / N/A text foobar format json HTTP_AUTHORIZATION N/A self permitted_credentials N/A response N/A get_queryset_list_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_201_CREATED N/A test_has_put_permissions N/A N/A self N/A N/A N/A request N/A N/A factory put /1 N/A text foobar format json HTTP_AUTHORIZATION N/A self permitted_credentials N/A response N/A instance_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A test_has_delete_permissions N/A N/A self N/A N/A N/A request N/A N/A factory delete /1 HTTP_AUTHORIZATION N/A self permitted_credentials N/A response N/A instance_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_204_NO_CONTENT N/A test_does_not_have_create_permissions N/A N/A self N/A N/A N/A request N/A N/A factory post / N/A text foobar format json HTTP_AUTHORIZATION N/A self disallowed_credentials N/A response N/A root_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_403_FORBIDDEN N/A test_does_not_have_put_permissions N/A N/A self N/A N/A N/A request N/A N/A factory put /1 N/A text foobar format json HTTP_AUTHORIZATION N/A self disallowed_credentials N/A response N/A instance_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_403_FORBIDDEN N/A test_does_not_have_delete_permissions N/A N/A self N/A N/A N/A request N/A N/A factory delete /1 HTTP_AUTHORIZATION N/A self disallowed_credentials N/A response N/A instance_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_403_FORBIDDEN N/A test_options_permitted N/A N/A self N/A N/A N/A request N/A N/A factory options / HTTP_AUTHORIZATION N/A self permitted_credentials N/A response N/A root_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A N/A N/A self assertIn actions N/A response data N/A N/A N/A self assertEqual N/A list N/A N/A N/A N/A response data N/A actions keys N/A POST N/A request N/A N/A factory options /1 HTTP_AUTHORIZATION N/A self permitted_credentials N/A response N/A instance_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A N/A N/A self assertIn actions N/A response data N/A N/A N/A self assertEqual N/A list N/A N/A N/A N/A response data N/A actions keys N/A PUT N/A test_options_disallowed N/A N/A self N/A N/A N/A request N/A N/A factory options / HTTP_AUTHORIZATION N/A self disallowed_credentials N/A response N/A root_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A N/A N/A self assertNotIn actions N/A response data N/A request N/A N/A factory options /1 HTTP_AUTHORIZATION N/A self disallowed_credentials N/A response N/A instance_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A N/A N/A self assertNotIn actions N/A response data N/A test_options_updateonly N/A N/A self N/A N/A N/A request N/A N/A factory options / HTTP_AUTHORIZATION N/A self updateonly_credentials N/A response N/A root_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A N/A N/A self assertNotIn actions N/A response data N/A request N/A N/A factory options /1 HTTP_AUTHORIZATION N/A self updateonly_credentials N/A response N/A instance_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A N/A N/A self assertIn actions N/A response data N/A N/A N/A self assertEqual N/A list N/A N/A N/A N/A response data N/A actions keys N/A PUT N/A test_empty_view_does_not_assert N/A N/A self N/A N/A N/A request N/A N/A factory get /1 HTTP_AUTHORIZATION N/A self permitted_credentials N/A response N/A empty_list_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A N/A BasicPermModel N/A N/A models Model N/A N/A text N/A N/A models CharField max_length 100 Meta N/A N/A N/A app_label tests N/A permissions N/A N/A view_basicpermmodel Can view basic perm model N/A N/A BasicPermSerializer N/A N/A serializers ModelSerializer N/A Meta N/A N/A N/A model BasicPermModel N/A N/A ViewObjectPermissions N/A N/A permissions DjangoObjectPermissions N/A N/A perms_map N/A GET OPTIONS HEAD POST PUT PATCH DELETE N/A %(app_label)s.view_%(model_name)s N/A %(app_label)s.view_%(model_name)s N/A %(app_label)s.view_%(model_name)s N/A %(app_label)s.add_%(model_name)s N/A %(app_label)s.change_%(model_name)s N/A %(app_label)s.change_%(model_name)s N/A %(app_label)s.delete_%(model_name)s N/A ObjectPermissionInstanceView N/A N/A generics RetrieveUpdateDestroyAPIView N/A N/A queryset N/A N/A N/A BasicPermModel objects all N/A serializer_class BasicPermSerializer N/A authentication_classes N/A N/A authentication BasicAuthentication N/A permission_classes N/A ViewObjectPermissions N/A N/A object_permissions_view N/A N/A ObjectPermissionInstanceView as_view ObjectPermissionListView N/A N/A generics ListAPIView N/A N/A queryset N/A N/A N/A BasicPermModel objects all N/A serializer_class BasicPermSerializer N/A authentication_classes N/A N/A authentication BasicAuthentication N/A permission_classes N/A ViewObjectPermissions N/A N/A object_permissions_list_view N/A N/A ObjectPermissionListView as_view GetQuerysetObjectPermissionInstanceView N/A N/A generics RetrieveUpdateDestroyAPIView N/A N/A serializer_class BasicPermSerializer N/A authentication_classes N/A N/A authentication BasicAuthentication N/A permission_classes N/A ViewObjectPermissions get_queryset N/A N/A self N/A N/A N/A N/A N/A N/A BasicPermModel objects all N/A N/A N/A get_queryset_object_permissions_view N/A N/A GetQuerysetObjectPermissionInstanceView as_view ObjectPermissionsIntegrationTests N/A TestCase N/A N/A 
    Integration tests for the object level permissions API.
     setUp N/A N/A self N/A N/A guardian.shortcuts assign_perm N/A create N/A N/A User objects create_user N/A users N/A fullaccess readonly writeonly deleteonly N/A create fullaccess fullaccess@example.com password N/A create readonly readonly@example.com password N/A create writeonly writeonly@example.com password N/A create deleteonly deleteonly@example.com password N/A everyone N/A N/A N/A Group objects create name everyone N/A model_name N/A N/A BasicPermModel _meta model_name N/A app_label N/A N/A BasicPermModel _meta app_label N/A f N/A {0}_{1} format N/A perms N/A view change delete N/A f view model_name N/A f change model_name N/A f delete model_name N/A perm N/A N/A perms values N/A N/A perm N/A N/A {0}.{1} format app_label perm N/A N/A assign_perm perm everyone N/A N/A N/A N/A everyone user_set add N/A N/A users values N/A readers N/A N/A N/A Group objects create name readers N/A writers N/A N/A N/A Group objects create name writers N/A deleters N/A N/A N/A Group objects create name deleters N/A model N/A N/A N/A BasicPermModel objects create text foo N/A N/A assign_perm N/A perms N/A view readers model N/A N/A assign_perm N/A perms N/A change writers model N/A N/A assign_perm N/A perms N/A delete deleters model N/A N/A N/A N/A readers user_set add N/A users N/A fullaccess N/A users N/A readonly N/A N/A N/A N/A writers user_set add N/A users N/A fullaccess N/A users N/A writeonly N/A N/A N/A N/A deleters user_set add N/A users N/A fullaccess N/A users N/A deleteonly N/A N/A self credentials N/A N/A user N/A N/A users values N/A N/A N/A N/A self credentials N/A N/A user username N/A basic_auth_header N/A user username password N/A test_can_delete_permissions N/A N/A self N/A N/A N/A request N/A N/A factory delete /1 HTTP_AUTHORIZATION N/A N/A self credentials N/A deleteonly N/A response N/A object_permissions_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_204_NO_CONTENT N/A test_cannot_delete_permissions N/A N/A self N/A N/A N/A request N/A N/A factory delete /1 HTTP_AUTHORIZATION N/A N/A self credentials N/A readonly N/A response N/A object_permissions_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_403_FORBIDDEN N/A test_can_update_permissions N/A N/A self N/A N/A N/A request N/A N/A factory patch /1 N/A text foobar format json HTTP_AUTHORIZATION N/A N/A self credentials N/A writeonly N/A response N/A object_permissions_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A N/A N/A self assertEqual N/A N/A N/A response data get text foobar N/A test_cannot_update_permissions N/A N/A self N/A N/A N/A request N/A N/A factory patch /1 N/A text foobar format json HTTP_AUTHORIZATION N/A N/A self credentials N/A deleteonly N/A response N/A object_permissions_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_404_NOT_FOUND N/A test_cannot_update_permissions_non_existing N/A N/A self N/A N/A N/A request N/A N/A factory patch /999 N/A text foobar format json HTTP_AUTHORIZATION N/A N/A self credentials N/A deleteonly N/A response N/A object_permissions_view request pk 999 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_404_NOT_FOUND N/A test_can_read_permissions N/A N/A self N/A N/A N/A request N/A N/A factory get /1 HTTP_AUTHORIZATION N/A N/A self credentials N/A readonly N/A response N/A object_permissions_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A test_cannot_read_permissions N/A N/A self N/A N/A N/A request N/A N/A factory get /1 HTTP_AUTHORIZATION N/A N/A self credentials N/A writeonly N/A response N/A object_permissions_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_404_NOT_FOUND N/A test_can_read_get_queryset_permissions N/A N/A self N/A N/A N/A 
        same as ``test_can_read_permissions`` but with a view
        that rely on ``.get_queryset()`` instead of ``.queryset``.
         N/A request N/A N/A factory get /1 HTTP_AUTHORIZATION N/A N/A self credentials N/A readonly N/A response N/A get_queryset_object_permissions_view request pk 1 N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A test_can_read_list_permissions N/A N/A self N/A N/A N/A request N/A N/A factory get / HTTP_AUTHORIZATION N/A N/A self credentials N/A readonly N/A N/A N/A object_permissions_list_view cls filter_backends N/A DjangoObjectPermissionsFilter N/A response N/A object_permissions_list_view request N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A N/A N/A self assertEqual N/A N/A N/A N/A response data N/A 0 get id 1 N/A test_cannot_read_list_permissions N/A N/A self N/A N/A N/A request N/A N/A factory get / HTTP_AUTHORIZATION N/A N/A self credentials N/A writeonly N/A N/A N/A object_permissions_list_view cls filter_backends N/A DjangoObjectPermissionsFilter N/A response N/A object_permissions_list_view request N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A N/A N/A self assertListEqual N/A response data N/A N/A N/A N/A N/A unittest skipUnless guardian django-guardian not installed BasicPerm N/A N/A permissions BasePermission N/A has_permission N/A N/A self request view N/A N/A N/A False N/A N/A BasicPermWithDetail N/A N/A permissions BasePermission N/A N/A message Custom: You cannot access this resource has_permission N/A N/A self request view N/A N/A N/A False N/A N/A BasicObjectPerm N/A N/A permissions BasePermission N/A has_object_permission N/A N/A self request view obj N/A N/A N/A False N/A N/A BasicObjectPermWithDetail N/A N/A permissions BasePermission N/A N/A message Custom: You cannot access this resource has_object_permission N/A N/A self request view obj N/A N/A N/A False N/A N/A PermissionInstanceView N/A N/A generics RetrieveUpdateDestroyAPIView N/A N/A queryset N/A N/A N/A BasicModel objects all N/A serializer_class BasicSerializer N/A DeniedView N/A PermissionInstanceView N/A N/A permission_classes N/A BasicPerm N/A DeniedViewWithDetail N/A PermissionInstanceView N/A N/A permission_classes N/A BasicPermWithDetail N/A DeniedObjectView N/A PermissionInstanceView N/A N/A permission_classes N/A BasicObjectPerm N/A DeniedObjectViewWithDetail N/A PermissionInstanceView N/A N/A permission_classes N/A BasicObjectPermWithDetail N/A N/A denied_view N/A N/A DeniedView as_view N/A denied_view_with_detail N/A N/A DeniedViewWithDetail as_view N/A denied_object_view N/A N/A DeniedObjectView as_view N/A denied_object_view_with_detail N/A N/A DeniedObjectViewWithDetail as_view CustomPermissionsTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A BasicModel text foo save N/A N/A N/A N/A User objects create_user username username@example.com password N/A credentials N/A basic_auth_header username password N/A N/A self request N/A N/A factory get /1 format json HTTP_AUTHORIZATION credentials N/A N/A self custom_message Custom: You cannot access this resource N/A test_permission_denied N/A N/A self N/A N/A N/A response N/A denied_view N/A self request pk 1 N/A detail N/A N/A N/A response data get detail N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_403_FORBIDDEN N/A N/A N/A self assertNotEqual detail N/A self custom_message N/A test_permission_denied_with_custom_detail N/A N/A self N/A N/A N/A response N/A denied_view_with_detail N/A self request pk 1 N/A detail N/A N/A N/A response data get detail N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_403_FORBIDDEN N/A N/A N/A self assertEqual detail N/A self custom_message N/A test_permission_denied_for_object N/A N/A self N/A N/A N/A response N/A denied_object_view N/A self request pk 1 N/A detail N/A N/A N/A response data get detail N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_403_FORBIDDEN N/A N/A N/A self assertNotEqual detail N/A self custom_message N/A test_permission_denied_for_object_with_custom_detail N/A N/A self N/A N/A N/A response N/A denied_object_view_with_detail N/A self request pk 1 N/A detail N/A N/A N/A response data get detail N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_403_FORBIDDEN N/A N/A N/A self assertEqual detail N/A self custom_message N/A N/A