Skip to content

Commit

Permalink
fix views
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-lymar committed Jun 7, 2024
1 parent 10776c5 commit 6d79bbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions logistics/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ class TripRailwayViewSet(viewsets.ModelViewSet[TripRailway]):
class FactoryListAPIView(generics.ListAPIView[Factory]):
queryset = Factory.objects.all()
serializer_class = FactorySerializer

# permission_classes = (IsAuthenticated,)
permission_classes = (IsAuthenticated,)

def get_queryset(self):
cached_factories = cache.get("factories_list")
Expand Down

0 comments on commit 6d79bbb

Please sign in to comment.