collections.abc.MutableMapping
rest_framework.utils.serializer_helpers.BindingDict
- This dict-like object is used to store fields on a serializer.collections.OrderedDict
rest_framework.schemas.coreapi.LinkNode
- Undocumentedrest_framework.utils.serializer_helpers.ReturnDict
- Return object from `serializer.data` for the `Serializer` class. Includes a backlink to the serializer instance for renderers to use if they need richer field information.dict
rest_framework.decorators.MethodMapper
- Enables mapping HTTP methods to different ViewSet methods for a single, logical action.django.apps.AppConfig
rest_framework.apps.RestFrameworkConfig
- Undocumentedrest_framework.authtoken.apps.AuthTokenConfig
- Undocumenteddjango.contrib.admin.ModelAdmin
rest_framework.authtoken.admin.TokenAdmin
- No class docstring; 0/4 class variable, 1/3 method documenteddjango.contrib.admin.views.main.ChangeList
rest_framework.authtoken.admin.TokenChangeList
- Map to matching User iddjango.core.management.base.BaseCommand
django.db.migrations.Migration
django.db.models.Model
rest_framework.authtoken.models.Token
- The default authorization token model.rest_framework.authtoken.models.TokenProxy
- Proxy mapping pk to user pk for use in admin.django.middleware.csrf.CsrfViewMiddleware
rest_framework.authentication.CSRFCheck
- Undocumenteddjango.template.Node
rest_framework.templatetags.rest_framework.CodeNode
- Undocumenteddjango.template.response.SimpleTemplateResponse
rest_framework.response.Response
- An HttpResponse that allows its data to be rendered into arbitrary media types.django.test.client.Client
rest_framework.test.APIClient
- No class docstring; 0/2 instance variable, 2/11 methods documenteddjango.test.client.ClientHandler
rest_framework.test.ForceAuthClientHandler
- A patched version of ClientHandler that can enforce authentication on the outgoing requests.django.test.client.RequestFactory
rest_framework.test.APIRequestFactory
- No class docstring; 0/2 instance variable, 1/10 method documentedrest_framework.test.APIClient
- No class docstring; 0/2 instance variable, 2/11 methods documenteddjango.test.testcases.LiveServerTestCase
rest_framework.test.APILiveServerTestCase
- Undocumenteddjango.test.testcases.SimpleTestCase
rest_framework.test.APISimpleTestCase
- Undocumentedrest_framework.test.URLPatternsTestCase
- Isolate URL patterns on a per-TestCase basis. For example,django.test.testcases.TestCase
rest_framework.test.APITestCase
- Undocumenteddjango.test.testcases.TransactionTestCase
rest_framework.test.APITransactionTestCase
- Undocumenteddjango.views.generic.View
rest_framework.views.APIView
- No class docstring; 1/2 property, 0/7 instance variable, 0/1 class variable, 29/30 methods, 1/1 class method documentedrest_framework.authtoken.views.ObtainAuthToken
- Undocumentedrest_framework.generics.GenericAPIView
- Base class for all other generic views.rest_framework.generics.CreateAPIView
- Concrete view for creating a model instance.rest_framework.generics.DestroyAPIView
- Concrete view for deleting a model instance.rest_framework.generics.ListAPIView
- Concrete view for listing a queryset.rest_framework.generics.ListCreateAPIView
- Concrete view for listing a queryset or creating a model instance.rest_framework.generics.RetrieveAPIView
- Concrete view for retrieving a model instance.rest_framework.generics.RetrieveDestroyAPIView
- Concrete view for retrieving or deleting a model instance.rest_framework.generics.RetrieveUpdateAPIView
- Concrete view for retrieving, updating a model instance.rest_framework.generics.RetrieveUpdateDestroyAPIView
- Concrete view for retrieving, updating or deleting a model instance.rest_framework.generics.UpdateAPIView
- Concrete view for updating a model instance.rest_framework.viewsets.GenericViewSet
- The GenericViewSet class does not provide any actions by default, but does include the base set of generic view behavior, such as the `get_object` and `get_queryset` methods.rest_framework.viewsets.ModelViewSet
- A viewset that provides default `create()`, `retrieve()`, `update()`, `partial_update()`, `destroy()` and `list()` actions.rest_framework.viewsets.ReadOnlyModelViewSet
- A viewset that provides default `list()` and `retrieve()` actions.rest_framework.routers.APIRootView
- The default basic root view for DefaultRouterrest_framework.schemas.views.SchemaView
- Undocumentedrest_framework.viewsets.ViewSet
- The base ViewSet class does not provide any actions by default.Exception
rest_framework.exceptions.APIException
- Base class for REST framework exceptions. Subclasses should provide `.status_code` and `.default_detail` properties.rest_framework.exceptions.AuthenticationFailed
- Undocumentedrest_framework.exceptions.MethodNotAllowed
- Undocumentedrest_framework.exceptions.NotAcceptable
- Undocumentedrest_framework.exceptions.NotAuthenticated
- Undocumentedrest_framework.exceptions.NotFound
- Undocumentedrest_framework.exceptions.ParseError
- Undocumentedrest_framework.exceptions.PermissionDenied
- Undocumentedrest_framework.exceptions.Throttled
- Undocumentedrest_framework.exceptions.UnsupportedMediaType
- Undocumentedrest_framework.exceptions.ValidationError
- Undocumentedrest_framework.fields.BuiltinSignatureError
- Built-in function signatures are not inspectable. This exception is raised so the serializer can raise a helpful error message.rest_framework.fields.SkipField
- Undocumentedrest_framework.request.WrappedAttributeError
- Undocumentedjson.JSONEncoder
rest_framework.utils.encoders.JSONEncoder
- JSONEncoder subclass that knows how to encode date/time/timedelta, decimal types, generators and other basic python objects.list
rest_framework.utils.serializer_helpers.ReturnList
- Return object from `serializer.data` for the `SerializerList` class. Includes a backlink to the serializer instance for renderers to use if they need richer field information.markdown.preprocessors.Preprocessor
rest_framework.compat.CodeBlockPreprocessor
- UndocumentedPendingDeprecationWarning
rest_framework.RemovedInDRF315Warning
- Undocumentedrest_framework.authentication.BaseAuthentication
- All authentication classes should extend BaseAuthentication.rest_framework.authentication.BasicAuthentication
- HTTP Basic authentication against username/password.rest_framework.authentication.RemoteUserAuthentication
- REMOTE_USER authentication.rest_framework.authentication.SessionAuthentication
- Use Django's session framework for authentication.rest_framework.authentication.TokenAuthentication
- Simple token based authentication.rest_framework.authtoken.models.Token.Meta
- Undocumentedrest_framework.authtoken.models.TokenProxy.Meta
- Undocumentedrest_framework.compat.coreapi.Client
rest_framework.test.CoreAPIClient
- Undocumentedrest_framework.compat.requests.adapters.HTTPAdapter
rest_framework.test.DjangoTestAdapter
- A transport adapter for `requests`, that makes requests via the Django WSGI app, rather than making actual HTTP requests over the network.rest_framework.compat.requests.packages.urllib3._collections.HTTPHeaderDict
rest_framework.test.HeaderDict
- Undocumentedrest_framework.compat.requests.Session
rest_framework.test.RequestsClient
- Undocumentedrest_framework.fields.CreateOnlyDefault
- This class may be used to provide default values that are only used for create operations, but that do not return any value for update operations.rest_framework.fields.CurrentUserDefault
- Undocumentedrest_framework.fields.empty
- This class is used to represent no data being provided for a given input or output value.rest_framework.fields.Field
- No class docstring; 2/3 properties, 0/17 instance variable, 0/2 class variable, 14/17 methods documentedrest_framework.fields._UnvalidatedField
- Undocumentedrest_framework.fields.BooleanField
- Undocumentedrest_framework.fields.CharField
- Undocumentedrest_framework.fields.EmailField
- Undocumentedrest_framework.fields.IPAddressField
- Support both IPAddressField and GenericIPAddressFieldrest_framework.fields.RegexField
- Undocumentedrest_framework.fields.SlugField
- Undocumentedrest_framework.fields.URLField
- Undocumentedrest_framework.fields.ChoiceField
- No class docstring; 0/7 instance variable, 0/1 class variable, 1/6 method documentedrest_framework.fields.FilePathField
- Undocumentedrest_framework.fields.MultipleChoiceField
- Undocumentedrest_framework.fields.DateField
- Undocumentedrest_framework.fields.DateTimeField
- No class docstring; 0/3 instance variable, 0/1 class variable, 1/5 method documentedrest_framework.fields.DecimalField
- No class docstring; 0/8 instance variable, 0/1 class variable, 0/1 constant, 3/6 methods documentedrest_framework.fields.DictField
- No class docstring; 0/2 instance variable, 0/2 class variable, 1/5 method documentedrest_framework.fields.HStoreField
- Undocumentedrest_framework.fields.DurationField
- Undocumentedrest_framework.fields.FileField
- Undocumentedrest_framework.fields.ImageField
- Undocumentedrest_framework.fields.FloatField
- Undocumentedrest_framework.fields.HiddenField
- A hidden field does not take input from the user, or present any output, but it does populate a field in `validated_data`, based on its default value. This is particularly useful when we have a `unique_for_date` constraint on a pair of fields, as we need some way to include the date in the validated data.rest_framework.fields.IntegerField
- Undocumentedrest_framework.fields.JSONField
- Undocumentedrest_framework.fields.ListField
- No class docstring; 0/4 instance variable, 0/2 class variable, 2/5 methods documentedrest_framework.fields.ModelField
- A generic field that can be used against an arbitrary model field.rest_framework.fields.ReadOnlyField
- A read-only field that simply returns the field value.rest_framework.fields.SerializerMethodField
- A read-only field that get its representation from calling a method on the parent serializer class. The method called will be of the form "get_{field_name}", and should take a single argument, which is the object being serialized.rest_framework.fields.TimeField
- Undocumentedrest_framework.fields.UUIDField
- Undocumentedrest_framework.relations.ManyRelatedField
- Relationships with `many=True` transparently get coerced into instead being a ManyRelatedField with a child relationship.rest_framework.relations.RelatedField
- No class docstring; 0/2 property, 0/3 instance variable, 0/9 method, 1/1 class method documentedrest_framework.relations.HyperlinkedRelatedField
- No class docstring; 0/5 instance variable, 0/1 class variable, 2/6 methods documentedrest_framework.relations.HyperlinkedIdentityField
- A read-only field that represents the identity URL for an object, itself.rest_framework.relations.PrimaryKeyRelatedField
- Undocumentedrest_framework.relations.SlugRelatedField
- A read-write field that represents the target of the relationship by a unique 'slug' attribute.rest_framework.relations.StringRelatedField
- A read only field that represents its targets using their plain string representation.rest_framework.serializers.BaseSerializer
- The BaseSerializer class provides a minimal class which may be used for writing custom serializer implementations.rest_framework.serializers.ListSerializer
- No class docstring; 0/2 property, 0/6 instance variable, 0/2 class variable, 5/12 methods documentedrest_framework.serializers.Serializer
- No class docstring; 1/5 property, 0/1 class variable, 6/13 methods documentedrest_framework.authtoken.serializers.AuthTokenSerializer
- Undocumentedrest_framework.serializers.ModelSerializer
- A `ModelSerializer` is just a regular `Serializer`, except that:rest_framework.serializers.HyperlinkedModelSerializer
- A type of `ModelSerializer` that uses hyperlinked relationships instead of primary key relationships. Specifically:rest_framework.filters.BaseFilterBackend
- A base class from which all filter backend classes should inherit.rest_framework.filters.OrderingFilter
- No class docstring; 0/4 class variable, 1/10 method documentedrest_framework.filters.SearchFilter
- No class docstring; 0/4 class variable, 3/8 methods documentedrest_framework.metadata.BaseMetadata
- No class docstring; 1/1 method documentedrest_framework.metadata.SimpleMetadata
- This is the default metadata implementation. It returns an ad-hoc set of information about the view. There are not any formalized standards for `OPTIONS` responses for us to base this on.rest_framework.mixins.CreateModelMixin
- Create a model instance.rest_framework.generics.CreateAPIView
- Concrete view for creating a model instance.rest_framework.generics.ListCreateAPIView
- Concrete view for listing a queryset or creating a model instance.rest_framework.viewsets.ModelViewSet
- A viewset that provides default `create()`, `retrieve()`, `update()`, `partial_update()`, `destroy()` and `list()` actions.rest_framework.mixins.DestroyModelMixin
- Destroy a model instance.rest_framework.generics.DestroyAPIView
- Concrete view for deleting a model instance.rest_framework.generics.RetrieveDestroyAPIView
- Concrete view for retrieving or deleting a model instance.rest_framework.generics.RetrieveUpdateDestroyAPIView
- Concrete view for retrieving, updating or deleting a model instance.rest_framework.viewsets.ModelViewSet
- A viewset that provides default `create()`, `retrieve()`, `update()`, `partial_update()`, `destroy()` and `list()` actions.rest_framework.mixins.ListModelMixin
- List a queryset.rest_framework.generics.ListAPIView
- Concrete view for listing a queryset.rest_framework.generics.ListCreateAPIView
- Concrete view for listing a queryset or creating a model instance.rest_framework.viewsets.ModelViewSet
- A viewset that provides default `create()`, `retrieve()`, `update()`, `partial_update()`, `destroy()` and `list()` actions.rest_framework.viewsets.ReadOnlyModelViewSet
- A viewset that provides default `list()` and `retrieve()` actions.rest_framework.mixins.RetrieveModelMixin
- Retrieve a model instance.rest_framework.generics.RetrieveAPIView
- Concrete view for retrieving a model instance.rest_framework.generics.RetrieveDestroyAPIView
- Concrete view for retrieving or deleting a model instance.rest_framework.generics.RetrieveUpdateAPIView
- Concrete view for retrieving, updating a model instance.rest_framework.generics.RetrieveUpdateDestroyAPIView
- Concrete view for retrieving, updating or deleting a model instance.rest_framework.viewsets.ModelViewSet
- A viewset that provides default `create()`, `retrieve()`, `update()`, `partial_update()`, `destroy()` and `list()` actions.rest_framework.viewsets.ReadOnlyModelViewSet
- A viewset that provides default `list()` and `retrieve()` actions.rest_framework.mixins.UpdateModelMixin
- Update a model instance.rest_framework.generics.RetrieveUpdateAPIView
- Concrete view for retrieving, updating a model instance.rest_framework.generics.RetrieveUpdateDestroyAPIView
- Concrete view for retrieving, updating or deleting a model instance.rest_framework.generics.UpdateAPIView
- Concrete view for updating a model instance.rest_framework.viewsets.ModelViewSet
- A viewset that provides default `create()`, `retrieve()`, `update()`, `partial_update()`, `destroy()` and `list()` actions.rest_framework.negotiation.BaseContentNegotiation
- Undocumentedrest_framework.negotiation.DefaultContentNegotiation
- No class docstring; 4/4 methods documentedrest_framework.pagination.BasePagination
- Undocumentedrest_framework.pagination.CursorPagination
- The cursor pagination implementation is necessarily complex. For an overview of the position/offset style we use, see this post: https://cra.mr/2011/03/08/building-cursors-for-the-disqus-apirest_framework.pagination.LimitOffsetPagination
- A limit/offset based style. For example:rest_framework.pagination.PageNumberPagination
- A simple page number based style that supports page numbers as query parameters. For example:rest_framework.parsers.BaseParser
- All parsers should extend `BaseParser`, specifying a `media_type` attribute, and overriding the `.parse()` method.rest_framework.parsers.FileUploadParser
- Parser for file upload data.rest_framework.parsers.FormParser
- Parser for form data.rest_framework.parsers.JSONParser
- Parses JSON-serialized data.rest_framework.parsers.MultiPartParser
- Parser for multipart form data, which may include file data.rest_framework.parsers.DataAndFiles
- Undocumentedrest_framework.permissions.AND
- Undocumentedrest_framework.permissions.BasePermission
- A base class from which all permission classes should inherit.rest_framework.permissions.AllowAny
- Allow any access. This isn't strictly required, since you could use an empty permission_classes list, but it's useful because it makes the intention more explicit.rest_framework.permissions.DjangoModelPermissions
- The request is authenticated using `django.contrib.auth` permissions. See: https://docs.djangoproject.com/en/dev/topics/auth/#permissionsrest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly
- Similar to DjangoModelPermissions, except that anonymous users are allowed read-only access.rest_framework.permissions.DjangoObjectPermissions
- The request is authenticated using Django's object-level permissions. It requires an object-permissions-enabled backend, such as Django Guardian.rest_framework.permissions.IsAdminUser
- Allows access only to admin users.rest_framework.permissions.IsAuthenticated
- Allows access only to authenticated users.rest_framework.permissions.IsAuthenticatedOrReadOnly
- The request is authenticated as a user, or is a read-only request.rest_framework.permissions.NOT
- Undocumentedrest_framework.permissions.OperationHolderMixin
- Undocumentedrest_framework.permissions.BasePermissionMetaclass
- Undocumentedrest_framework.permissions.OperandHolder
- Undocumentedrest_framework.permissions.SingleOperandHolder
- Undocumentedrest_framework.permissions.OR
- Undocumentedrest_framework.relations.PKOnlyObject
- This is a mock object, used for when we only need the pk of the object instance, but still want to return an object with a .pk attribute, in order to keep the same interface as a regular model instance.rest_framework.renderers._BaseOpenAPIRenderer
- Undocumentedrest_framework.renderers.CoreAPIJSONOpenAPIRenderer
- Undocumentedrest_framework.renderers.CoreAPIOpenAPIRenderer
- Undocumentedrest_framework.renderers.BaseRenderer
- All renderers should extend this class, setting the `media_type` and `format` attributes, and override the `.render()` method.rest_framework.renderers.BrowsableAPIRenderer
- HTML renderer used to self-document the API.rest_framework.renderers.AdminRenderer
- No class docstring; 0/4 instance variable, 0/2 class variable, 2/3 methods documentedrest_framework.renderers.CoreJSONRenderer
- Undocumentedrest_framework.renderers.DocumentationRenderer
- Undocumentedrest_framework.renderers.HTMLFormRenderer
- Renderers serializer data into an HTML form.rest_framework.renderers.JSONOpenAPIRenderer
- Undocumentedrest_framework.renderers.JSONRenderer
- Renderer which serializes to JSON.rest_framework.renderers.MultiPartRenderer
- Undocumentedrest_framework.renderers.OpenAPIRenderer
- Undocumentedrest_framework.renderers.SchemaJSRenderer
- Undocumentedrest_framework.renderers.TemplateHTMLRenderer
- An HTML renderer for use with templates.rest_framework.renderers.StaticHTMLRenderer
- An HTML renderer class that simply returns pre-rendered HTML.rest_framework.request.Empty
- Placeholder for unset attributes. Cannot use `None`, as that may be a valid value.rest_framework.request.ForcedAuthentication
- This authentication class is used if the test client or request factory forcibly authenticated the request.rest_framework.request.override_method
- A context manager that temporarily overrides the method on a request, additionally setting the `view.request` attribute.rest_framework.request.Request
- Wrapper allowing to enhance a standard `HttpRequest` instance.rest_framework.routers.BaseRouter
- No class docstring; 0/1 property, 0/1 instance variable, 2/4 methods documentedrest_framework.routers.SimpleRouter
- No class docstring; 0/1 instance variable, 0/1 class variable, 5/7 methods documentedrest_framework.routers.DefaultRouter
- The default router extends the SimpleRouter, but also adds in a default API root view, and adds format suffix patterns to the URLs.rest_framework.schemas.generators.BaseSchemaGenerator
- No class docstring; 0/8 instance variable, 4/7 methods documentedrest_framework.schemas.coreapi.SchemaGenerator
- Original CoreAPI version.rest_framework.schemas.openapi.SchemaGenerator
- No class docstring; 1/3 method documentedrest_framework.schemas.generators.EndpointEnumerator
- A class to determine the available API endpoints that a project exposes.rest_framework.schemas.inspectors.ViewInspector
- Descriptor class on APIView.rest_framework.schemas.coreapi.AutoSchema
- Default inspector for APIViewrest_framework.schemas.coreapi.ManualSchema
- Allows providing a list of coreapi.Fields, plus an optional description.rest_framework.schemas.inspectors.DefaultSchema
- Allows overriding AutoSchema using DEFAULT_SCHEMA_CLASS settingrest_framework.schemas.openapi.AutoSchema
- No class docstring; 0/5 instance variable, 0/1 class variable, 10/27 methods documentedrest_framework.settings.APISettings
- A settings object that allows REST Framework settings to be accessed as properties. For example:rest_framework.test.MockOriginalResponse
- Undocumentedrest_framework.throttling.BaseThrottle
- Rate throttling of requests.rest_framework.throttling.SimpleRateThrottle
- A simple cache implementation, that only requires `.get_cache_key()` to be overridden.rest_framework.throttling.AnonRateThrottle
- Limits the rate of API calls that may be made by a anonymous users.rest_framework.throttling.ScopedRateThrottle
- Limits the rate of API calls by different amounts for various parts of the API. Any view that has the `throttle_scope` property set will be throttled. The unique cache key will be generated by concatenating the user id of the request, and the scope of the view being accessed.rest_framework.throttling.UserRateThrottle
- Limits the rate of API calls that may be made by a given user.rest_framework.utils.field_mapping.ClassLookupDict
- Takes a dictionary with classes as keys. Lookups against this object will traverses the object's inheritance hierarchy in method resolution order, and returns the first matching value from the dictionary or raises a KeyError if nothing matches.rest_framework.utils.formatting.lazy_format
- Delay formatting until it's actually needed.rest_framework.utils.mediatypes._MediaType
- No class docstring; 1/1 property, 0/5 instance variable, 1/3 method documentedrest_framework.utils.serializer_helpers.BoundField
- A field object that also includes `.value` and `.error` properties. Returned when iterating over a serializer instance, providing an API similar to Django forms and form fields.rest_framework.utils.serializer_helpers.JSONBoundField
- Undocumentedrest_framework.utils.serializer_helpers.NestedBoundField
- This `BoundField` additionally implements __iter__ and __getitem__ in order to support nested bound fields. This class is the type of `BoundField` that is used for serializer fields.rest_framework.validators.BaseUniqueForValidator
- No class docstring; 0/4 instance variable, 0/2 class variable, 2/6 methods documentedrest_framework.validators.UniqueForDateValidator
- Undocumentedrest_framework.validators.UniqueForMonthValidator
- Undocumentedrest_framework.validators.UniqueForYearValidator
- Undocumentedrest_framework.validators.ProhibitSurrogateCharactersValidator
- Undocumentedrest_framework.validators.UniqueTogetherValidator
- Validator that corresponds to `unique_together = (...)` on a model class.rest_framework.validators.UniqueValidator
- Validator that corresponds to `unique=True` on a model field.rest_framework.versioning.BaseVersioning
- Undocumentedrest_framework.versioning.AcceptHeaderVersioning
- GET /something/ HTTP/1.1 Host: example.com Accept: application/json; version=1.0rest_framework.versioning.HostNameVersioning
- GET /something/ HTTP/1.1 Host: v1.example.com Accept: application/jsonrest_framework.versioning.NamespaceVersioning
- To the client this is the same style as `URLPathVersioning`. The difference is in the backend - this implementation uses Django's URL namespaces to determine the version.rest_framework.versioning.QueryParameterVersioning
- GET /something/?version=0.1 HTTP/1.1 Host: example.com Accept: application/jsonrest_framework.versioning.URLPathVersioning
- To the client this is the same style as `NamespaceVersioning`. The difference is in the backend - this implementation uses Django's URL keyword arguments to determine the version.rest_framework.viewsets.ViewSetMixin
- This is the magic.rest_framework.viewsets.GenericViewSet
- The GenericViewSet class does not provide any actions by default, but does include the base set of generic view behavior, such as the `get_object` and `get_queryset` methods.rest_framework.viewsets.ModelViewSet
- A viewset that provides default `create()`, `retrieve()`, `update()`, `partial_update()`, `destroy()` and `list()` actions.rest_framework.viewsets.ReadOnlyModelViewSet
- A viewset that provides default `list()` and `retrieve()` actions.rest_framework.viewsets.ViewSet
- The base ViewSet class does not provide any actions by default.str
rest_framework.exceptions.ErrorDetail
- A string-like object that can additionally have a code.rest_framework.relations.Hyperlink
- A string like object that additionally has an associated name. We use this for hyperlinked URLs that may render as a named link in some contexts, or render as a plain URL in others.type
rest_framework.permissions.BasePermissionMetaclass
- Undocumentedrest_framework.serializers.SerializerMetaclass
- This metaclass sets a dictionary named `_declared_fields` on the class.TypeError
rest_framework.relations.ObjectTypeError
- Raised when `queryset.get()` failed due to an underlying `TypeError`. Wrapping prevents calling code conflating this with unrelated errors.ValueError
rest_framework.relations.ObjectValueError
- Raised when `queryset.get()` failed due to an underlying `ValueError`. Wrapping prevents calling code conflating this with unrelated errors.