Answers for "django rest DjangoModelPermissions include get"

0

django rest DjangoModelPermissions include get

class CustomDjangoModelPermission(permissions.DjangoModelPermissions):

    def __init__(self):
        self.perms_map = copy.deepcopy(self.perms_map)  # from EunChong's answer
        self.perms_map['GET'] = ['%(app_label)s.view_%(model_name)s']
Posted by: Guest on September-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language