devicehub-django/snapshot/views.py

12 lines
293 B
Python
Raw Normal View History

2024-06-12 07:32:49 +00:00
# from django.shortcuts import render
from rest_framework import viewsets
from snapshot.models import Snapshot
from snapshot.serializers import SnapshotSerializer
class SnapshotViewSet(viewsets.ModelViewSet):
queryset = Snapshot.objects.all()
serializer_class = SnapshotSerializer