return value of the function smart_text with return value of the method value._get_pk_val as an argument for 'pk'. for every relobj in iterator generated from the field.name attribute of the obj object.
for relobj in getattr ( obj , field . name ) . iterator ( ) :