Remove old HTTP_ACTIONS constant

This commit is contained in:
Daniel Sheppard 2024-06-17 10:57:15 -05:00
parent 67b6857745
commit ed3f0846d3
2 changed files with 0 additions and 13 deletions

View File

@ -11,17 +11,6 @@ from utilities.permissions import resolve_permission
from utilities.request import get_client_ip
HTTP_ACTIONS = {
'GET': 'view',
'OPTIONS': None,
'HEAD': 'view',
'POST': 'add',
'PUT': 'change',
'PATCH': 'change',
'DELETE': 'delete',
}
class TokenAuthentication(authentication.TokenAuthentication):
"""
A custom authentication scheme which enforces Token expiration times and source IP restrictions.

View File

@ -19,8 +19,6 @@ __all__ = (
'NetBoxModelViewSet',
)
from netbox.api.authentication import HTTP_ACTIONS
class BaseViewSet(GenericViewSet):
"""