from rest_framework.viewsets import ReadOnlyModelViewSet
from rest_access_policy import AccessViewSetMixin

from .models import Municipio
from .serializers import MunicipioSerializer
from .views_access_policies import MunicipioAccessPolicy


class MunicipioViewSet(AccessViewSetMixin, ReadOnlyModelViewSet):
    """
    Municipio ViewSet description:

    list: Listar municípios.
    retrieve: Consultar município.
    """
    access_policy = MunicipioAccessPolicy
    serializer_class = MunicipioSerializer

    def get_queryset(self):
        return Municipio.objects.all().order_by("id")

0f0414b7a1ad8e17a300eec66698dbb4fe2844f6
<mask token>


class MunicipioViewSet(AccessViewSetMixin, ReadOnlyModelViewSet):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class MunicipioViewSet(AccessViewSetMixin, ReadOnlyModelViewSet):
    <mask token>
    access_policy = MunicipioAccessPolicy
    serializer_class = MunicipioSerializer

    def get_queryset(self):
        return Municipio.objects.all().order_by('id')

<mask token>


class MunicipioViewSet(AccessViewSetMixin, ReadOnlyModelViewSet):
    """
    Municipio ViewSet description:

    list: Listar municípios.
    retrieve: Consultar município.
    """
    access_policy = MunicipioAccessPolicy
    serializer_class = MunicipioSerializer

    def get_queryset(self):
        return Municipio.objects.all().order_by('id')

from rest_framework.viewsets import ReadOnlyModelViewSet
from rest_access_policy import AccessViewSetMixin
from .models import Municipio
from .serializers import MunicipioSerializer
from .views_access_policies import MunicipioAccessPolicy


class MunicipioViewSet(AccessViewSetMixin, ReadOnlyModelViewSet):
    """
    Municipio ViewSet description:

    list: Listar municípios.
    retrieve: Consultar município.
    """
    access_policy = MunicipioAccessPolicy
    serializer_class = MunicipioSerializer

    def get_queryset(self):
        return Municipio.objects.all().order_by('id')

from rest_framework.viewsets import ReadOnlyModelViewSet
from rest_access_policy import AccessViewSetMixin

from .models import Municipio
from .serializers import MunicipioSerializer
from .views_access_policies import MunicipioAccessPolicy


class MunicipioViewSet(AccessViewSetMixin, ReadOnlyModelViewSet):
    """
    Municipio ViewSet description:

    list: Listar municípios.
    retrieve: Consultar município.
    """
    access_policy = MunicipioAccessPolicy
    serializer_class = MunicipioSerializer

    def get_queryset(self):
        return Municipio.objects.all().order_by("id")
