()
| 1189 | """ |
| 1190 | |
| 1191 | def _get_field_choices(): |
| 1192 | direct_choices = (f.name for f in opts.fields if f.is_relation) |
| 1193 | reverse_choices = ( |
| 1194 | f.field.related_query_name() |
| 1195 | for f in opts.related_objects |
| 1196 | if f.field.unique |
| 1197 | ) |
| 1198 | return chain( |
| 1199 | direct_choices, reverse_choices, self.query._filtered_relations |
| 1200 | ) |
| 1201 | |
| 1202 | related_klass_infos = [] |
| 1203 | if not restricted and cur_depth > self.query.max_depth: |
nothing calls this directly
no test coverage detected