Hi Django REST Community, I want to build a frontend and a backend. Within my frontend I would like to be able to create a new resource but with referencing already existing Movies or create new Movie instances. For instance via this post request: { "name": "Resource1", "movie": [ { "id": 0 }, { "id": 1 }, { "id": 2 }, { "name": "New Movie 1", "description": "Simple description..." }, { "name": "New Movie 2", "description": "Another description" }, ] } Does this design makes sense or is there a better approach? If so, do I then need to create 2 serializers one for post (create) and one for everything else? I could then use get_serializer_class to distinguish between the 2 serializers.
I would be happy to receive an opinion. Kind regards, Dona -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/69d4e8e3-1b63-45e7-9d90-a127cfcd6f61n%40googlegroups.com.