diff options
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( | 
