Archived
Style.
This commit is contained in:
1 parent
eb45d7aa00
commit
5b45af2850
1 file changed
+1
-3
@@ -54,9 +54,7 @@ class MemberResource(ModelResource):
|
||||
"""
|
||||
Catches POST and PATCH requests and intercepts data.
|
||||
"""
|
||||
if bundle.obj.user_ptr_id == None: # True if new user
|
||||
pass
|
||||
else:
|
||||
if bundle.obj.user_ptr_id is not None: # happens only if user exists
|
||||
for key, value in bundle.data.items():
|
||||
if key == 'username':
|
||||
if value != bundle.obj.username:
|
||||
|
||||
Reference in new issue
Block a user