def _get_field_choices():
    direct_choices = (f.name for f in opts.fields if f.is_relation)
    reverse_choices = (f.field.related_query_name() for f in opts.related_objects if f.field.unique)
    return chain(direct_choices, reverse_choices)
def _get_field_choices():
    direct_choices = (f.name for f in opts.fields if f.is_relation)
    reverse_choices = (f.field.related_query_name() for f in opts.related_objects if f.field.unique)
    return chain(direct_choices, reverse_choices)