summaryrefslogtreecommitdiff
path: root/ishtar_common/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-02-23 17:07:51 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-02-26 15:20:15 +0100
commit7f19c3e85b4184f43e23cf212c8ec150bc52a719 (patch)
tree34bd1b6545ad53e1791024f7e1b7946bc29d878a /ishtar_common/forms.py
parentcf8dc42aa243dab5a527eacac99efbdc044c74f4 (diff)
downloadIshtar-7f19c3e85b4184f43e23cf212c8ec150bc52a719.tar.bz2
Ishtar-7f19c3e85b4184f43e23cf212c8ec150bc52a719.zip
✨ document related search: search by document type
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