You can just say `for part in assessment.parts.all():`