gamingflexer
Add DatabaseSerializer and new API views
28f1741
raw
history blame contribute delete
321 Bytes
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__'