devicehub-django/snapshot/serializers.py

9 lines
218 B
Python
Raw Normal View History

2024-06-12 07:32:49 +00:00
from rest_framework import serializers
from snapshot.models import Snapshot
class SnapshotSerializer(serializers.ModelSerializer):
class Meta:
model = Snapshot
fields = ['id', 'title', 'content']