Archived
Minor
This commit is contained in:
1 parent
16db46e496
commit
abed9bfc46
1 file changed
+2
-2
@@ -165,8 +165,8 @@ class MemberCreateResource(ModelResource):
|
||||
detail_allowed_methods = []
|
||||
default_format = "application/json"
|
||||
queryset = Member.objects.all()
|
||||
authentication = OAuth20Authentication() # anyone
|
||||
authorization = Authorization() # can do what they want with anything
|
||||
authentication = OAuth20Authentication() # Who are you?
|
||||
authorization = MyDjangoAuthorization() # What are you allowed to do?
|
||||
always_return_data = True
|
||||
excludes = [ 'date_joined', 'password', 'is_active', 'is_staff', 'is_superuser', 'last_login' ]
|
||||
validation = CleanedDataFormValidation(form_class=MemberCreateForm)
|
||||
|
||||
Reference in new issue
Block a user