возврат каталога(все тесты)
This commit is contained in:
1 parent
de682a9542
commit
9e169cf869
2 files changed
+2
-3
No files matched your search
@@ -4,9 +4,8 @@ from .views import *
|
||||
|
||||
urlpatterns = [
|
||||
path('testdetail/<int:id>/', TestDetail.as_view(),name='TestDetail'),
|
||||
# path('testlistcreate/', TestListCreate.as_view(), name="TestListCreate"),
|
||||
path('testlistcreate/', TestListCreate.as_view(), name="TestListCreate"),
|
||||
path('gettesting/', GetTesting.as_view(), name="GetTesting"),
|
||||
path('testresultcreate/', TestResultCreate.as_view(), name="TestResultCreate"),
|
||||
path('testlist/', TestList.as_view(), name="TestList"),
|
||||
]
|
||||
|
||||
@@ -20,7 +20,7 @@ import hashlib
|
||||
from cryptography.fernet import Fernet
|
||||
from django.db.models import F
|
||||
|
||||
class TestList(generics.ListAPIView):
|
||||
class TestListCreate(generics.ListCreateAPIView):
|
||||
queryset = Test.objects.all()
|
||||
serializer_class = TestSerializer
|
||||
|
||||
|
||||
Reference in new issue
Block a user