Skip to content

Commit a0457c7

Browse files
committed
Filter unused document types from the search form. Fixes ietf-tools#1890. Commit ready for merge.
- Legacy-Id: 10732
1 parent 7573973 commit a0457c7

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)