from rest_framework import viewsets
from .models import DomainWhitelist
from .serializers import DomainWhitelistSerializer


class DomainWhitelistViewset(viewsets.ReadOnlyModelViewSet):
    queryset = DomainWhitelist.objects.filter(is_active=True)
    serializer_class = DomainWhitelistSerializer

from rest_framework import viewsets
from .models import DomainWhitelist
from .serializers import DomainWhitelistSerializer


class DomainWhitelistViewset(viewsets.ReadOnlyModelViewSet):
    queryset = DomainWhitelist.objects.filter(is_active=True)
    serializer_class = DomainWhitelistSerializer
