Fixed test show
This commit is contained in:
parent
bc6d973bf3
commit
378d758e4a
@ -5,6 +5,7 @@ from rest_framework.response import Response
|
||||
|
||||
from trials.models import Test
|
||||
from trials.serializers import TestSerializer
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class TestModelViewSet(viewsets.ModelViewSet):
|
||||
@ -14,6 +15,9 @@ class TestModelViewSet(viewsets.ModelViewSet):
|
||||
|
||||
class TestTemplateView(TemplateView):
|
||||
|
||||
permission_classes = []
|
||||
template_name = settings.BASE_DIR + f"/templates/generic_test.html"
|
||||
|
||||
def get_queryset(self):
|
||||
return Test.objects.all()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user