Answers for "django serializer exclude fields"

0

django serializer exclude fields

class BLContainerSerializer(serializers.ModelSerializer):
    class Meta:
        model = Container
        exclude = ('field1', )


class BLcontainerMergedSerializer(serializers.ModelSerializer):
    container = BLContainerSerializer()

    class Meta:
        model = BLcontainer
Posted by: Guest on October-27-2021

Code answers related to "django serializer exclude fields"

Python Answers by Framework

Browse Popular Code Answers by Language