Archived
Removed password from returened fields in member.
This commit is contained in:
1 parent
d4524c9b13
commit
e661d8b16c
2 files changed
+11
-11
No files matched your search
@@ -15,6 +15,7 @@ class MemberResource(ModelResource):
|
||||
list_allowed_methods = [ 'get', 'post' ]
|
||||
detail_allowed_methods = [ 'get', 'post' ]
|
||||
authorization = Authorization() # TODO: for dev (VERY INSECURE)
|
||||
excludes = [ 'password' ]
|
||||
filtering = {
|
||||
'username' : ALL,
|
||||
'epost' : ALL,
|
||||
|
||||
+10
-11
@@ -12,7 +12,6 @@ class MemberTest(ResourceTestCase):
|
||||
u'id',
|
||||
u'email',
|
||||
u'username',
|
||||
u'password',
|
||||
u'phone_number',
|
||||
u'first_name',
|
||||
u'last_name',
|
||||
@@ -100,15 +99,15 @@ class MemberTest(ResourceTestCase):
|
||||
member = all_members[0]
|
||||
self.assertValidMemberData(member)
|
||||
|
||||
def test_post_new_member(self):
|
||||
"""
|
||||
Tests that we can correctly put in new users.
|
||||
"""
|
||||
pass # TODO!
|
||||
def test_post_new_member(self):
|
||||
"""
|
||||
Tests that we can correctly put in new users.
|
||||
"""
|
||||
pass # TODO!
|
||||
|
||||
def test_post_change_member(self):
|
||||
"""
|
||||
Tests that we can correctly change data of existing members.
|
||||
"""
|
||||
pass # TODO!
|
||||
def test_post_change_member(self):
|
||||
"""
|
||||
Tests that we can correctly change data of existing members.
|
||||
"""
|
||||
pass # TODO!
|
||||
|
||||
Reference in new issue
Block a user