diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-04 18:24:19 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-04 18:24:19 +0200 |
commit | ac8a8030af444f40aaeefcdbb64de1767c551d4e (patch) | |
tree | a36d85c0d2ebc37880f9c4e84dfbe952d37e46a1 /ishtar_common/models.py | |
parent | 235723102fdb7c5b74d42278b8d934b7e2830f1a (diff) | |
download | Ishtar-ac8a8030af444f40aaeefcdbb64de1767c551d4e.tar.bz2 Ishtar-ac8a8030af444f40aaeefcdbb64de1767c551d4e.zip |
QA document: bulk modification
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 2e618749b..c9a66f861 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -3694,7 +3694,6 @@ class Person(Address, Merge, OwnPerms, ValueGetter, MainItem): QA_EDIT ] - objects = PersonManager() # fields @@ -4399,7 +4398,7 @@ post_save.connect(post_save_cache, sender=LicenseType) post_delete.connect(post_save_cache, sender=LicenseType) -class Document(BaseHistorizedItem, OwnPerms, ImageModel, ValueGetter): +class Document(BaseHistorizedItem, OwnPerms, ImageModel, ValueGetter, MainItem): EXTERNAL_ID_KEY = 'document_external_id' # order is important: put the image in the first match found # other will be symbolic links @@ -4560,6 +4559,13 @@ class Document(BaseHistorizedItem, OwnPerms, ImageModel, ValueGetter): "treatmentfile": (pgettext_lazy("key for text search", u"treatment-file"), 'cached_label'), } + QA_EDIT = QuickAction( + url="document-qa-bulk-update", icon_class="fa fa-pencil", + text=_(u"Bulk update"), target="many", + rights=['change_document', 'change_own_document']) + QUICK_ACTIONS = [ + QA_EDIT + ] title = models.TextField(_(u"Title"), blank=True, default='') associated_file = models.FileField( |