We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b37a599 commit 484e4a9Copy full SHA for 484e4a9
django_react/settings.py
@@ -139,6 +139,6 @@
139
'rest_framework.authentication.SessionAuthentication',
140
],
141
'DEFAULT_PERMISSION_CLASSES': [
142
- 'rest_framework.permissions.DjangoModelPermissions',
+ 'django_react.permissions.DrDjangoModelPermissions',
143
]
144
}
leads/views.py
@@ -1,11 +1,8 @@
1
from .models import Lead
2
from .serializers import LeadSerializer
3
from rest_framework import generics
4
-from django_react.permissions import DrDjangoModelPermissions
5
6
7
class LeadListCreate(generics.ListCreateAPIView):
8
queryset = Lead.objects.all()
9
serializer_class = LeadSerializer
10
- permission_classes = [DrDjangoModelPermissions]
11
-
0 commit comments