I have been researching this for a couple days. Unfortunately, all of the proposed solutions I have found so far don't exactly work for me.
I am looking to manually combine two Django QuerySets into a single Django model, which I then want to serialize using a Django Rest Framework serializer. I then use the serializer for outputting JSON.
I have found various solutions on SO suggesting the use of itertools and chain, but it is unclear then how to serialize the result of chain.
Note that my goal here is for web application performance purposes. Each QuerySet works fine independently, but it requires two separate Ajax calls to retrieve the results. I would prefer to make only one Ajax call, manually combine the results on the server-side, then return the combined JSON.
This SO answer is close, but I can't figure out how to serialize the result of a chain, using DRF serializers.