DRF Serializers

Guardrail serializers.

class smarter.apps.guardrail.serializers.GuardrailSerializer(*args, **kwargs)[source]

Bases: MetaDataWithOwnershipModelSerializer

Serializer for the smarter.apps.guardrail.models.Guardrail model.

get_fields()[source]

Return the dict of field names -> field instances that should be used for self.fields when instantiating the serializer.