Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullahBakir97 committed May 29, 2024
1 parent 718658a commit 2c27bf1
Show file tree
Hide file tree
Showing 12 changed files with 1,678 additions and 619 deletions.
Binary file modified backend/db.sqlite3
Binary file not shown.
Binary file modified backend/project/__pycache__/settings.cpython-312.pyc
Binary file not shown.
Binary file modified backend/tasks/__pycache__/views.cpython-312.pyc
Binary file not shown.
9 changes: 3 additions & 6 deletions backend/tasks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,12 @@ class ProjectViewSet(viewsets.ModelViewSet):
permission_classes = [IsProjectManagerOrReadOnly]


class TaskViewSet(viewsets.ModelViewSet):
queryset = Task.objects.all()
serializer_class = TaskSerializer
permission_classes = [IsProjectManagerOrReadOnly]


class TaskViewSet(viewsets.ModelViewSet):
queryset = Task.objects.all()
serializer_class = TaskSerializer
# permission_classes = [IsAuthenticated]
permission_classes = [IsProjectManagerOrReadOnly]

def perform_create(self, serializer):
serializer.save()
Expand Down Expand Up @@ -57,7 +54,7 @@ class CommentViewSet(viewsets.ModelViewSet):
class FileViewSet(viewsets.ModelViewSet):
queryset = File.objects.all()
serializer_class = FileSerializer

permission_classes = [IsProjectManagerOrReadOnly]

class EventViewSet(viewsets.ModelViewSet):
queryset = Event.objects.all()
Expand Down
Loading

0 comments on commit 2c27bf1

Please sign in to comment.