Fixed old test expectations

This commit is contained in:
Akita Noek
2016-08-16 15:36:07 -04:00
parent 9c5c09169e
commit 91cd32d304
2 changed files with 1 additions and 29 deletions
+1 -1
View File
@@ -655,7 +655,7 @@ class CredentialAccess(BaseAccess):
return False
# Cannot change the organization for a credential after it's been created
if 'organization' in data:
if data and 'organization' in data:
organization_pk = get_pk_from_dict(data, 'organization')
if (organization_pk and (not obj.organization or organization_pk != obj.organization.id)) \
or (not organization_pk and obj.organization):