diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-04 17:28:44 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-04 17:28:44 +0200 | 
| commit | daee77bd657f0e72767d64dd92f36008e1c47676 (patch) | |
| tree | 1faf126fd84566f09901a694c144626e0c0df4ce /archaeological_operations/models.py | |
| parent | d7e26ad68e62014d1fbe01c36b0bd1d5688181c2 (diff) | |
| download | Ishtar-daee77bd657f0e72767d64dd92f36008e1c47676.tar.bz2 Ishtar-daee77bd657f0e72767d64dd92f36008e1c47676.zip  | |
QA operation: bulk modification
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 11 | 
1 files changed, 9 insertions, 2 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 996ede679..e54720771 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -39,7 +39,7 @@ from ishtar_common.models import BaseHistorizedItem, Dashboard, \      post_delete_record_relation, post_save_cache, RelationItem, \      ShortMenuItem, SourceType, Town, ValueGetter, get_current_profile, \      document_attached_changed, HistoryModel, SearchAltName, \ -    GeoItem, QRCodeItem, SearchVectorConfig, DocumentItem +    GeoItem, QRCodeItem, SearchVectorConfig, DocumentItem, QuickAction, MainItem  from ishtar_common.utils import cached_label_changed, \      force_cached_label_changed, mode, m2m_historization_changed, post_save_geo @@ -516,7 +516,7 @@ class OperationManager(models.GeoManager):  class Operation(ClosedItem, DocumentItem, BaseHistorizedItem, QRCodeItem, -                GeoItem, OwnPerms, ValueGetter, ShortMenuItem, +                GeoItem, OwnPerms, ValueGetter, MainItem,                  DashboardFormItem, RelationItem):      SLUG = 'operation'      APP = "archaeological-operations" @@ -782,6 +782,13 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem, QRCodeItem,              'drassm_code__iexact'          ),      } +    QA_EDIT = QuickAction( +        url="operation-qa-bulk-update", icon_class="fa fa-pencil", +        text=_(u"Bulk update"), target="many", +        rights=['change_operation', 'change_own_operation']) +    QUICK_ACTIONS = [ +        QA_EDIT +    ]      UP_MODEL_QUERY = {          "site": (pgettext_lazy("key for text search", u"site"),  | 
