We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6be7a1 commit 7f03825Copy full SHA for 7f03825
readthedocs/api/base.py
@@ -12,7 +12,7 @@
12
from django.core.cache import cache
13
from django.shortcuts import get_object_or_404
14
from tastypie import fields
15
-from tastypie.authorization import DjangoAuthorization
+from tastypie.authorization import DjangoAuthorization, ReadOnlyAuthorization
16
from tastypie.constants import ALL, ALL_WITH_RELATIONS
17
from tastypie.http import HttpCreated
18
from tastypie.resources import ModelResource
@@ -39,7 +39,7 @@ class Meta(object):
39
allowed_methods = ['get', 'post', 'put']
40
queryset = Project.objects.api()
41
authentication = PostAuthentication()
42
- authorization = DjangoAuthorization()
+ authorization = ReadOnlyAuthorization()
43
excludes = ['path', 'featured', 'programming_language']
44
filtering = {
45
'users': ALL_WITH_RELATIONS,
0 commit comments