from django.db.models import fields
from rest_framework.serializers import ModelSerializer
from . import models as apimodels


class DatasetSerializer(ModelSerializer):
    class Meta:
        model = apimodels.Dataset
        fields = '__all__'


class PaperSerializer(ModelSerializer):
    class Meta:
        model = apimodels.Paper
        fields = '__all__'


class MetricSerializer(ModelSerializer):
    class Meta:
        model = apimodels.Metric
        fields = '__all__'

from django.db.models import fields
from rest_framework.serializers import ModelSerializer
from . import models as apimodels


class DatasetSerializer(ModelSerializer):
    class Meta:
        model = apimodels.Dataset
        fields = '__all__'


class PaperSerializer(ModelSerializer):
    class Meta:
        model = apimodels.Paper
        fields = '__all__'


class MetricSerializer(ModelSerializer):
    class Meta:
        model = apimodels.Metric
        fields = '__all__'
