added bsaic viewset classes
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
from rest_framework import viewsets
|
||||
from stats.models import StatsLog
|
||||
from stats.serializers import StatsLogSerializer
|
||||
|
||||
|
||||
class StatsLogViewSet(viewsets.ModelViewSet):
|
||||
queryset = StatsLog.objects.all()
|
||||
serializer_class = StatsLogSerializer
|
||||
|
||||
Reference in New Issue
Block a user