Skip to content

Commit 484e4a9

Browse files
committedJan 11, 2023
Make Django permissions the default.
1 parent b37a599 commit 484e4a9

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed
 

‎django_react/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,6 @@
139139
'rest_framework.authentication.SessionAuthentication',
140140
],
141141
'DEFAULT_PERMISSION_CLASSES': [
142-
'rest_framework.permissions.DjangoModelPermissions',
142+
'django_react.permissions.DrDjangoModelPermissions',
143143
]
144144
}

‎leads/views.py

-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
from .models import Lead
22
from .serializers import LeadSerializer
33
from rest_framework import generics
4-
from django_react.permissions import DrDjangoModelPermissions
54

65

76
class LeadListCreate(generics.ListCreateAPIView):
87
queryset = Lead.objects.all()
98
serializer_class = LeadSerializer
10-
permission_classes = [DrDjangoModelPermissions]
11-

0 commit comments

Comments
 (0)