from rest_framework import serializers

from .models import Menu
    #meta: means data about data
class MenuSerializer(serializers.ModelSerializer):
    class Meta:
            model = Menu
            #fields = '__all__'
            fields = ('id', 'category', 'price', 'name', 'description')

7d040c86a0545d33bab70e70ba8d93256acf4dc3
<mask token>

<mask token>


class MenuSerializer(serializers.ModelSerializer):


    class Meta:
        model = Menu
        fields = 'id', 'category', 'price', 'name', 'description'

from rest_framework import serializers
from .models import Menu


class MenuSerializer(serializers.ModelSerializer):


    class Meta:
        model = Menu
        fields = 'id', 'category', 'price', 'name', 'description'

from rest_framework import serializers

from .models import Menu
    #meta: means data about data
class MenuSerializer(serializers.ModelSerializer):
    class Meta:
            model = Menu
            #fields = '__all__'
            fields = ('id', 'category', 'price', 'name', 'description')
