Marta Miranda

Modificado las modificaciones solicitadas

from django.test import TestCase
# Create your tests here.
... ... @@ -2,6 +2,7 @@ from rest_framework import viewsets, filters
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework.permissions import IsAuthenticated
from core.permissions import CustomModelPermissions
from organismo.filters import OrganismoFilter
from organismo.models import Organismo
... ... @@ -10,7 +11,7 @@ from organismo.serializers import OrganismoSerializer
class OrganismoViewSet(viewsets.ReadOnlyModelViewSet):
queryset = Organismo.objects.all()
# permission_classes = (IsAuthenticated, CustomModelPermissions)
permission_classes = (IsAuthenticated, CustomModelPermissions)
serializer_class = OrganismoSerializer
filter_backends = (DjangoFilterBackend, filters.OrderingFilter)
filterset_class = OrganismoFilter
... ...
from django.test import TestCase
# Create your tests here.
from django.test import TestCase
# Create your tests here.