Skip to main content
Serializers turn model instances into JSON, converting snake_case to camelCase on the way out so your frontend gets the shape it expects.
camel_case defaults to True, so created_at serializes as createdAt. Set it to False in Meta to keep the Python names.

Field types

Generating one

That writes the shape above, including the Meta block and a commented example of a computed field.