source.py 254 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
from rest_framework import serializers
from metagenedb.apps.catalog.models import Source


class SourceSerializer(serializers.ModelSerializer):

    class Meta:
        model = Source
        fields = (
10
            'name', 'slug', 'url', 'doi'
11
        )