You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class ListModelMixin:
def List(self, request, context):
"""
List a queryset. This sends a sequence of messages of serializer.Meta.proto_class to the client.
.. note::
This is a server streaming RPC.
"""
queryset = self.filter_queryset(self.get_queryset())
serializer = self.get_serializer(queryset, many=True)
for message in serializer.message:
yield message
The text was updated successfully, but these errors were encountered:
class ListModelMixin:
def List(self, request, context):
"""
List a queryset. This sends a sequence of messages of
serializer.Meta.proto_class
to the client.The text was updated successfully, but these errors were encountered: