Clean commented code (#1875)
# What this PR does ## Which issue(s) this PR fixes ## Checklist - [ ] Unit, integration, and e2e (if applicable) tests updated - [ ] Documentation added (or `pr:no public docs` PR label added if not required) - [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required)
This commit is contained in:
parent
c5c3ab1006
commit
c7c26cb693
1 changed files with 0 additions and 9 deletions
|
|
@ -4,8 +4,6 @@ from django_filters.rest_framework import DjangoFilterBackend
|
|||
from rest_framework import status
|
||||
from rest_framework.decorators import action
|
||||
from rest_framework.filters import SearchFilter
|
||||
|
||||
# from rest_framework.pagination import PageNumberPagination
|
||||
from rest_framework.permissions import IsAuthenticated
|
||||
from rest_framework.response import Response
|
||||
from rest_framework.viewsets import ModelViewSet
|
||||
|
|
@ -33,12 +31,6 @@ from common.api_helpers.mixins import (
|
|||
from common.exceptions import MaintenanceCouldNotBeStartedError, TeamCanNotBeChangedError, UnableToSendDemoAlert
|
||||
from common.insight_log import EntityEvent, write_resource_insight_log
|
||||
|
||||
# class AlertReceiveChannelPagination(PageNumberPagination):
|
||||
# page_size = 25
|
||||
# page_query_param = "page"
|
||||
# page_size_query_param = "perpage"
|
||||
# max_page_size = 50
|
||||
|
||||
|
||||
class AlertReceiveChannelFilter(ByTeamModelFieldFilterMixin, filters.FilterSet):
|
||||
maintenance_mode = filters.MultipleChoiceFilter(
|
||||
|
|
@ -89,7 +81,6 @@ class AlertReceiveChannelView(
|
|||
search_fields = ("verbal_name",)
|
||||
|
||||
filterset_class = AlertReceiveChannelFilter
|
||||
# pagination_class = AlertReceiveChannelPagination
|
||||
|
||||
rbac_permissions = {
|
||||
"metadata": [RBACPermission.Permissions.INTEGRATIONS_READ],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue