12 lines
339 B
Python
12 lines
339 B
Python
from django.shortcuts import render
|
|
|
|
# Create your views here.
|
|
from rest_framework import viewsets
|
|
from history.models import HistorySync
|
|
from history.serializers import HistorySyncLogSerializer
|
|
|
|
|
|
class HistorySyncViewSet(viewsets.ModelViewSet):
|
|
queryset = HistorySync.objects.all()
|
|
serializer_class = HistorySyncLogSerializer
|