embed ids in template serializer