You could do:

```
data['user'] = self.user.id if trim_user else self.user.export()
```

I'm not sure if that's better or not. Might exceed 80 characters.