Django rest framework, use different serializers in the same ModelViewSet

Django rest framework allows the creation and the use of different serializers (objects allowing complex data such as querysets and model instances to be converted to native Python datatypes that can then be easily rendered into JSON , XML or other content types) within the same ModelViewSet. For instance, if you would like to use PutHeroSerializer … Read more

Open chat
Powered by