Skip to content

Commit d00604f

Browse files
committed
Merged in [10732] from rjsparks@nostrum.com:
Filter unused document types from the search form. Fixes ietf-tools#1890. - Legacy-Id: 10747 Note: SVN reference [10732] has been migrated to Git commit a0457c7
2 parents 31b5c1f + a0457c7 commit d00604f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/views_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class SearchForm(forms.Form):
7070

7171
sort = forms.ChoiceField(choices=(("document", "Document"), ("title", "Title"), ("date", "Date"), ("status", "Status"), ("ipr", "Ipr"), ("ad", "AD")), required=False, widget=forms.HiddenInput)
7272

73-
doctypes = DocTypeName.objects.exclude(slug='draft').order_by('name');
73+
doctypes = DocTypeName.objects.filter(used=True).exclude(slug='draft').order_by('name');
7474

7575
def __init__(self, *args, **kwargs):
7676
super(SearchForm, self).__init__(*args, **kwargs)

0 commit comments

Comments
 (0)