Fixed crashes when PATCHing user and not providing address.

This commit is contained in:
Robert Kolner committed 2013-08-28 19:41:00 +02:00
1 parent 752a2a3b36
commit f5bfcea72e
1 file changed
+1 -1
+1 -1
View File
@@ -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