Исправлена сборка объекта на бэке

This commit is contained in:
Alex committed 2024-01-23 17:51:41 +03:00
1 parent 241966bb89
commit 8885fa0949
2 files changed
+16 -14

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ from .models import *
class SafetyFileAPIView(APIView):
def get(self, request):
all_file = SafetyFile.objects.all()
all_file = SafetyFile.objects.order_by('chapter_id', 'category_id').all()
serializer_for_file = SafetyFileSerializer(instance=all_file, many=True)
data = []