from rest_framework import serializers

from .models import Tweet


class TweetSerializer(serializers.ModelSerializer):

    class Meta:
        model = Tweet
        fields = (
            'id',
            'body',
            'created',
        )

Add Tweet serializer