serializers.py 218 Bytes
Newer Older
1 2 3 4
from rest_framework import serializers

from .models import DataStore

5

6 7 8
class DataStoreSerializer(serializers.ModelSerializer):
    class Meta:
        model = DataStore
9
        fields = ("name", "remote_ID")