Archived
Fixed crashes when PATCHing user and not providing address.
This commit is contained in:
1 parent
752a2a3b36
commit
f5bfcea72e
1 file changed
+1
-1
@@ -82,7 +82,7 @@ class MemberResource(ModelResource):
|
||||
bundle.obj.set_password(bundle.data['password'])
|
||||
bundle.obj.save()
|
||||
|
||||
if 'address' in bundle.data:
|
||||
if 'address' in bundle.data and bundle.data['address'] is not None:
|
||||
new_address = bundle.data.get('address')
|
||||
address = bundle.obj.address
|
||||
|
||||
|
||||
Reference in new issue
Block a user