summaryrefslogtreecommitdiff
path: root/ishtar_common/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/forms.py')
-rw-r--r--ishtar_common/forms.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py
index b81b42bc6..3dffc77c4 100644
--- a/ishtar_common/forms.py
+++ b/ishtar_common/forms.py
@@ -1029,11 +1029,16 @@ class DocumentItemSelect(ImportSelect):
documents__associated_url__isnull = forms.NullBooleanField(
label=_("Has a web address?")
)
+ documents__source_type = forms.ChoiceField(label=_("Document - Type"), choices=[])
CURRENT_FIELDS = [
"documents__image__isnull",
"documents__associated_file__isnull",
"documents__associated_url__isnull",
+ "documents__source_type",
] + ImportSelect.CURRENT_FIELDS
+ TYPES = [
+ FieldType("documents__source_type", models.SourceType),
+ ] + ImportSelect.TYPES
_explicit_ordering = True