From 48e0d9ab10c66e822e7be66d845ad6f2cb42a000 Mon Sep 17 00:00:00 2001 From: Pratyaksh Bhardwaj Date: Tue, 3 Dec 2024 02:47:13 +0530 Subject: [PATCH] bugs solving try --- socbackend/projects/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/socbackend/projects/views.py b/socbackend/projects/views.py index c625d0a..2b25188 100644 --- a/socbackend/projects/views.py +++ b/socbackend/projects/views.py @@ -110,12 +110,13 @@ def delete(self, request): class BasicProjectListView(generics.ListAPIView): permission_classes = [] + if True: upload_projects("./projects.csv") queryset = Project.objects.all() serializer_class = BasicProjectSerializer - +# class ProjectListView(generics.ListAPIView): # class ProjectAddView(generics.CreateAPIView): # queryset = Project.objects.all() # serializer_class = ProjectAdditionSerializer