Add filtering to document type selection form

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-22 21:28:21 -04:00
parent 0a39eac419
commit ef26296dc6
8 changed files with 81 additions and 73 deletions

View File

@@ -80,9 +80,3 @@ class DocumentOCRContentForm(forms.Form):
)
self.fields['contents'].initial = mark_safe(''.join(content))
class DocumentTypeSelectForm(forms.Form):
document_type = forms.ModelChoiceField(
queryset=DocumentType.objects.all(), label=('Document type')
)