We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c2a1b2 commit 671df04Copy full SHA for 671df04
1 file changed
ietf/doc/views_material.py
@@ -38,7 +38,7 @@ class UploadMaterialForm(forms.Form):
38
def __init__(self, doc_type, action, group, doc, *args, **kwargs):
39
super(UploadMaterialForm, self).__init__(*args, **kwargs)
40
41
- self.fields["state"].queryset = self.fields["state"].queryset.filter(type=doc_type)
+ self.fields["state"].queryset = self.fields["state"].queryset.filter(type__slug=doc_type.slug)
42
43
self.doc_type = doc_type
44
self.action = action
0 commit comments