diff options
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"), |