(opts)
| 104 | |
| 105 | |
| 106 | def get_candidate_relations_to_delete(opts): |
| 107 | # The candidate relations are the ones that come from N-1 and 1-1 |
| 108 | # relations. N-N (i.e., many-to-many) relations aren't candidates for |
| 109 | # deletion. |
| 110 | return ( |
| 111 | f |
| 112 | for f in opts.get_fields(include_hidden=True) |
| 113 | if f.auto_created and not f.concrete and (f.one_to_one or f.one_to_many) |
| 114 | ) |
| 115 | |
| 116 | |
| 117 | class Collector: |
no test coverage detected