Spaces:
Sleeping
Sleeping
from rest_framework import serializers | |
from .models import Product,Database | |
class ProductSerializer(serializers.ModelSerializer): | |
class Meta: | |
model = Product | |
fields = '__all__' | |
class DatabaseSerializer(serializers.ModelSerializer): | |
class Meta: | |
model = Database | |
fields = '__all__' |