Skip to content

Commit 671df04

Browse files
committed
Fixed an issue where a queryset filter argument didn't have the right datatype.
- Legacy-Id: 12403
1 parent 7c2a1b2 commit 671df04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/views_material.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class UploadMaterialForm(forms.Form):
3838
def __init__(self, doc_type, action, group, doc, *args, **kwargs):
3939
super(UploadMaterialForm, self).__init__(*args, **kwargs)
4040

41-
self.fields["state"].queryset = self.fields["state"].queryset.filter(type=doc_type)
41+
self.fields["state"].queryset = self.fields["state"].queryset.filter(type__slug=doc_type.slug)
4242

4343
self.doc_type = doc_type
4444
self.action = action

0 commit comments

Comments
 (0)