From 671df0492aaf300ef4b83a5348df2068943bee6f Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 28 Nov 2016 18:05:14 +0000 Subject: [PATCH] Fixed an issue where a queryset filter argument didn't have the right datatype. - Legacy-Id: 12403 --- ietf/doc/views_material.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/doc/views_material.py b/ietf/doc/views_material.py index f24228a06..2d0fada14 100644 --- a/ietf/doc/views_material.py +++ b/ietf/doc/views_material.py @@ -38,7 +38,7 @@ class UploadMaterialForm(forms.Form): def __init__(self, doc_type, action, group, doc, *args, **kwargs): super(UploadMaterialForm, self).__init__(*args, **kwargs) - 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) self.doc_type = doc_type self.action = action