devicehub-django/snapshot/serializers.py
Cayo Puigdefabregas 80668b3ec8 base of proyect
2024-06-12 09:32:49 +02:00

9 lines
218 B
Python

from rest_framework import serializers
from snapshot.models import Snapshot
class SnapshotSerializer(serializers.ModelSerializer):
class Meta:
model = Snapshot
fields = ['id', 'title', 'content']