This commit is contained in:
nikolark committed 2013-12-13 15:37:46 +01:00
1 parent 16db46e496
commit abed9bfc46
1 file changed
+2 -2
+2 -2
View File
@@ -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)