<filename>events/serializers.py
from rest_framework import serializers

from .models import Event

class EventSerializer(serializers.ModelSerializer):
    class Meta:
        model = Event
        fields = '__all__'
        read_only_fields = (
            'uuid',
            'timestamp'
        )

<filename>events/serializers.py
from rest_framework import serializers

from .models import Event

class EventSerializer(serializers.ModelSerializer):
    class Meta:
        model = Event
        fields = '__all__'
        read_only_fields = (
            'uuid',
            'timestamp'
        )
