Answers for "how we can call all fields in django serializer file"

2

serializers.py include all fields

# Include all fields in the Order model in the Serializer
class OrderSerializer(serializers.ModelSerializer):
    class Meta:
        model = Order
        fields = '__all__'
Posted by: Guest on February-01-2021

Code answers related to "how we can call all fields in django serializer file"

Python Answers by Framework

Browse Popular Code Answers by Language