Fix your get_ methods with 5 lines of code.
Here's an example of
SerializerMethodField from the Django Rest Framework docs:
get_ stuff hurts your soul like it does to mine, there's simpler way to do this.
First, let's create a new Serializer Field.
Now you can write the previous serializer like this: