diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-05-11 11:54:50 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-05-11 12:08:01 +0200 |
commit | 2a20394ce3d4f05b49affd9acf776ebc3971d63a (patch) | |
tree | 31c679e996921fdd70a0b7d0f6009fd2d20ae11b /ishtar_common/forms_common.py | |
parent | af36826678104f6a5cc1bffe66510ab32ad10160 (diff) | |
download | Ishtar-2a20394ce3d4f05b49affd9acf776ebc3971d63a.tar.bz2 Ishtar-2a20394ce3d4f05b49affd9acf776ebc3971d63a.zip |
✨ Document - bulk update: add modification of tags (refs #5415)
Diffstat (limited to 'ishtar_common/forms_common.py')
-rw-r--r-- | ishtar_common/forms_common.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py index cc4cf31a8..ce7f81f34 100644 --- a/ishtar_common/forms_common.py +++ b/ishtar_common/forms_common.py @@ -2296,6 +2296,7 @@ class QADocumentFormMulti(QAForm): associated_models = { "qa_source_type": models.SourceType, "qa_authors": models.Author, + "qa_tags": models.DocumentTag, } MULTI = True @@ -2313,11 +2314,13 @@ class QADocumentFormMulti(QAForm): qa_format_type = forms.ChoiceField(label=_("Format"), choices=[], required=False) qa_support_type = forms.ChoiceField(label=_("Medium"), choices=[], required=False) qa_scale = forms.CharField(label=_("Scale"), max_length=30, required=False) + qa_tags = forms.ChoiceField(label=_("Tags"), choices=[], required=False) TYPES = [ FieldType("qa_source_type", models.SourceType), FieldType("qa_format_type", models.Format), FieldType("qa_support_type", models.SupportType), + FieldType("qa_tags", models.DocumentTag), ] def _get_qa_authors(self, value): |