Fix a bug passing args to object 2 of the activitystream serializer

This commit is contained in:
Matthew Jones 2013-11-13 13:35:13 -05:00
parent d5d3495494
commit e2b657c72c

View File

@ -1018,7 +1018,7 @@ class ActivityStreamSerializer(BaseSerializer):
rel['object_1'] = reverse('api:' + obj1_resolution + '_detail', args=(obj.object1_id,))
if obj.operation in ('associate', 'disassociate'):
obj2_resolution = camelcase_to_underscore(obj.object2_type.split(".")[-1])
rel['object_2'] = reverse('api:' + obj2_resolution + '_detail', args(obj.object2_id,))
rel['object_2'] = reverse('api:' + obj2_resolution + '_detail', args=(obj.object2_id,))
return rel
def get_summary_fields(self, obj):