Feature/#9 crear nuevas app usuarios
-
Added 3 commits:
-
bb3b1e05...7b51bfd3 - 2 commits from branch
develop
- b7018167 - Solucionar conflictos base.txt
-
bb3b1e05...7b51bfd3 - 2 commits from branch
-
project/apps/core/permissions.py 0 → 100644
from rest_framework.permissions import DjangoModelPermissions class CustomModelPermissions(DjangoModelPermissions): -
Por qué haces una implementación Custom de DjangoModelPermissions? En caso de necesitarlo utiliza la definida por el framework, voy a dejarte un enlace para que veas que tu definición es la misma que está en el framework . https://github.com/encode/django-rest-framework/blob/master/rest_framework/permissions.py
Edited -
Martin se lo hizo porque class DjangoModelPermissions(BasePermission), no estaba especificado el metodo get
# Map methods into required permission codes. # Override this if you need to also provide 'view' permissions, # or if you want to provide custom permission codes. perms_map = { 'GET': [], 'OPTIONS': [], 'HEAD': [], 'POST': ['%(app_label)s.add_%(model_name)s'], 'PUT': ['%(app_label)s.change_%(model_name)s'], 'PATCH': ['%(app_label)s.change_%(model_name)s'], 'DELETE': ['%(app_label)s.delete_%(model_name)s'], }
-
-
project/apps/organismo/api.py 0 → 100644
from rest_framework import viewsets, filters from django_filters.rest_framework import DjangoFilterBackend from rest_framework.permissions import IsAuthenticated from core.permissions import CustomModelPermissions -
-
-
Added 1 commit:
- 55952da0 - Modificado las modificaciones solicitadas
-
mentioned in commit 1d0f41cb
-
Please register or login to post a comment