Исправлена сборка объекта на бэке
This commit is contained in:
1 parent
241966bb89
commit
8885fa0949
2 files changed
+16
-14
No files matched your search
+1
-1
@@ -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 = []
|
||||
|
||||
Reference in new issue
Block a user