""" go/serializers.py Define how data is translated from the database to json/API representation. """ # App Imports from .models import URL, RegisteredUser # Third Party Imports from rest_framework import serializers class URLSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = URL fields = ('destination', 'short', 'date_expires')