gas-drf/gas_drf/mixins.py

11 lines
261 B
Python

from rest_framework.authentication import SessionAuthentication
from .permissions import HasValidRole
class GASAuthMixin:
authentication_classes = [SessionAuthentication]
permission_classes = [HasValidRole]
base_role = 'admins'
roles = set()