django_socio_grpc.grpc_actions.utils
Module Contents
Functions
Find the field associated to the lookup field serializer_instance: instance of the serializer used in this service where the lookup field should be present service_instance: the service instance itself where we can introspect for lookupfield |
API
- django_socio_grpc.grpc_actions.utils.get_serializer_class(service: django_socio_grpc.generics.GenericService, action: Optional[str] = None)
- django_socio_grpc.grpc_actions.utils.get_serializer_base_name(service: django_socio_grpc.generics.GenericService, action: Optional[str] = None)
- django_socio_grpc.grpc_actions.utils.get_lookup_field_from_serializer(serializer_instance, service_instance)
Find the field associated to the lookup field serializer_instance: instance of the serializer used in this service where the lookup field should be present service_instance: the service instance itself where we can introspect for lookupfield
return: iterable: [str, <drf.serializers.Field>]