From abed9bfc46754939f2e049909a9c862f65ac2a78 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Fri, 13 Dec 2013 15:37:46 +0100 Subject: [PATCH] Minor --- dusken/api/member.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dusken/api/member.py b/dusken/api/member.py index 5a3bce2..40f3a3b 100644 --- a/dusken/api/member.py +++ b/dusken/api/member.py @@ -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)