<filename>compress/serializers.py<gh_stars>0
from rest_framework import serializers
from .models import Url


class UrlSerializer(serializers.ModelSerializer):

    class Meta:
        model = Url
        fields = ('slug',
                  'full_url')

<filename>compress/serializers.py<gh_stars>0
from rest_framework import serializers
from .models import Url


class UrlSerializer(serializers.ModelSerializer):

    class Meta:
        model = Url
        fields = ('slug',
                  'full_url')
