In python you can condense all these lines down into one:

```python
form.issues.data = [str(i.issue_id) for i in document.issues]
```