EraCode practice

DRF Mini: Format a computed field with SerializerMethodField

Django REST FrameworkintermediateMulti-Part

Summary

Quick practice on shaping output JSON in Django REST Framework by adding a computed, formatted field to a serializer.

Problem preview

### Goal Add a **formatted** output field to a serializer. - The API output must include , formatted like: . - should be derived from (an integer) and must not be writable. - Happy path only: assume …

Attempt this challenge

Sign in to attempt the full challenge with timed AI grading, hints, and test feedback.

DRF Mini: Format a computed field with SerializerMethodField | Django REST Framework practice | EraCode