from rest_framework import serializers
from .models import Brands


# class BrandSerializer(serializers.Serializer):

#     # BrandId = serializers.IntegerField()
#     BrandName =  serializers.CharField(max_length=100, default='')
#     BrandDescription = serializers.CharField(max_length=255 , default='')
#     BrandWebsite = serializers.CharField(max_length=255, default='')


class BrandSerializer(serializers.ModelSerializer):
    class Meta:
        model = Brands
        fields = '__all__'
183c8603defe0bad334ec7838136d0a8faa8dd77
<mask token>

<mask token>


class BrandSerializer(serializers.ModelSerializer):


    class Meta:
        model = Brands
        fields = '__all__'

from rest_framework import serializers
from .models import Brands


class BrandSerializer(serializers.ModelSerializer):


    class Meta:
        model = Brands
        fields = '__all__'

from rest_framework import serializers
from .models import Brands


# class BrandSerializer(serializers.Serializer):

#     # BrandId = serializers.IntegerField()
#     BrandName =  serializers.CharField(max_length=100, default='')
#     BrandDescription = serializers.CharField(max_length=255 , default='')
#     BrandWebsite = serializers.CharField(max_length=255, default='')


class BrandSerializer(serializers.ModelSerializer):
    class Meta:
        model = Brands
        fields = '__all__'