(using=DEFAULT_ALIAS)
| 11 | |
| 12 | |
| 13 | def model_choices(using=DEFAULT_ALIAS): |
| 14 | choices = [ |
| 15 | (get_model_ct(m), capfirst(smart_str(m._meta.verbose_name_plural))) |
| 16 | for m in connections[using].get_unified_index().get_indexed_models() |
| 17 | ] |
| 18 | return sorted(choices, key=lambda x: x[1]) |
| 19 | |
| 20 | |
| 21 | class SearchForm(forms.Form): |
searching dependent graphs…