Serializers

Serializers for DRF (Django Rest Framework).

Note: do not include the SmarterAuthToken serializer here, as it imports upstream models from the account app, which causes circular import issues.

class smarter.lib.drf.serializers.SmarterCamelCaseSerializer(*args, **kwargs)[source]

Bases: ModelSerializer

Base serializer to convert field names to camelCase.

__init__(*args, **kwargs)[source]

Initialize the serializer and set the request context.

request: HttpRequest | None
to_representation(instance)[source]

Convert field names to camelCase.