рефакторинг
This commit is contained in:
1 parent
7594aa48ee
commit
a8d49830a8
1 file changed
+2
-2
@@ -124,7 +124,7 @@ class TestDetail(generics.RetrieveUpdateDestroyAPIView):
|
||||
lookup_url_kwarg = 'id'
|
||||
lookup_field = 'id'
|
||||
|
||||
def get(self):
|
||||
def get(self, request):
|
||||
"""Processes a GET request to retrieve detailed information about a test."""
|
||||
test = self.get_object()
|
||||
number_of_questions = test.question_count
|
||||
@@ -550,7 +550,7 @@ class GetUsers(APIView):
|
||||
Комментарий
|
||||
"""
|
||||
|
||||
def get(self):
|
||||
def get(self, request):
|
||||
"""
|
||||
Комментарий
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user