Skip to content

Commit

Permalink
Disabled Rate Limiting for Admin Apis
Browse files Browse the repository at this point in the history
  • Loading branch information
jain-naman-sf committed Nov 21, 2023
1 parent 6ffeb8a commit 5ffde3a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions metadeploy/adminapi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,22 +151,27 @@ class PlanViewSet(AdminAPIViewSet):
model_name = "Plan"
serializer_base = PlanSerializer
filterset_class = PlanFilter
throttle_classes = []


class PlanSlugViewSet(AdminAPIViewSet):
model_name = "PlanSlug"
throttle_classes = []


class VersionViewSet(AdminAPIViewSet):
model_name = "Version"
throttle_classes = []


class ProductCategoryViewSet(AdminAPIViewSet):
model_name = "ProductCategory"
throttle_classes = []


class AllowedListViewSet(AdminAPIViewSet):
model_name = "AllowedList"
throttle_classes = []


class AllowedListOrgSerializer(AdminAPISerializer):
Expand All @@ -176,6 +181,7 @@ class AllowedListOrgSerializer(AdminAPISerializer):
class AllowedListOrgViewSet(AdminAPIViewSet):
model_name = "AllowedListOrg"
serializer_base = AllowedListOrgSerializer
throttle_classes = []


class TranslationViewSet(viewsets.ViewSet):
Expand All @@ -195,6 +201,7 @@ class TranslationViewSet(viewsets.ViewSet):

permission_classes = [IsAPIUser]
model_name = "Translation"
throttle_classes = []

def partial_update(self, request, pk=None):
# Add or update a Translation record for each message
Expand Down

0 comments on commit 5ffde3a

Please sign in to comment.