Fix a bug where we would treat the new model value like the old one when comparing activity stream changes

This commit is contained in:
Matthew Jones
2014-01-23 20:49:27 -05:00
parent 44d9d12e4d
commit 3d228b2955
2 changed files with 2 additions and 1 deletions

View File

@@ -746,7 +746,7 @@ class PermissionSerializer(BaseSerializer):
model = Permission
fields = BASE_FIELDS + ('user', 'team', 'project', 'inventory',
'permission_type',)
def get_related(self, obj):
if obj is None:
return {}