12👍
What you are trying to do is serializing with natural keys, explained here.
You basically need to define how to get the object from other fields in these special manager and model methods.
Just realized that this question has been asked 9 years ago, what? Why did it appear in the feed at the top?
Source:stackexchange.com