News for hackers. Stuff that matters.
Re:Django Rest Framework general model serializer by numlocked on Friday January 30, 2015 @10:22AM (#8972417)
I think it's somewhat rare to have generic relations (content type + model id) popping up this way in serializers. I tend to use generic FKs for things like "tags" or or "comments" that can apply to multiple objects. As a result, I'm almost always requesting the parent object ("post") and want the model with the generic FK serialized in that response ("post.comments"), not the other way around.

Just looking through largish DRF codebase, I'm not sure there are many places I could use this, thought it seems like a good idea if your code has a lot of these scenarios.

Re:Django Rest Framework general model serializer by norbert_mate on Friday January 30, 2015 @10:43AM (#8972521)
Thanks.