Generic views¶
Concrete async generic views built on top of AsyncGenericAPIView.
See the Generic views guide for
the hooks, filter backends, and pagination flow.
AsyncGenericAPIView ¶
Bases: AsyncAPIView, GenericAPIView
Base class for all other generic views, with an async dispatch loop.
Adds aget_object, afilter_queryset, and apaginate_queryset, falling back to sync_to_async for sync filter backends and paginators that do not expose async hooks.
AsyncListAPIView ¶
AsyncCreateAPIView ¶
AsyncRetrieveAPIView ¶
AsyncUpdateAPIView ¶
AsyncDestroyAPIView ¶
AsyncListCreateAPIView ¶
AsyncRetrieveUpdateAPIView ¶
Bases: AsyncRetrieveModelMixin, AsyncUpdateModelMixin, AsyncGenericAPIView
Concrete view for retrieving or updating a model instance, served via the async pipeline.