```python
footnotes |= get_footnotes_for_object(request, getattr(obj, field.name))
```