diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-13 16:52:49 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-13 16:52:49 +0200 |
commit | 9bc04754f1a8a01cb7457c335c41a3b2fee0a68c (patch) | |
tree | 5485667cc5b8610d1e8d538162faecba333366e5 /archaeological_operations/models.py | |
parent | 1097cf9fb7f853b5a33480ad27e8683634abf491 (diff) | |
download | Ishtar-9bc04754f1a8a01cb7457c335c41a3b2fee0a68c.tar.bz2 Ishtar-9bc04754f1a8a01cb7457c335c41a3b2fee0a68c.zip |
Delete action: operations, sites, orgas, containers, warehouses
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 91162f05c..601779e49 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -116,6 +116,7 @@ class ArchaeologicalSite(DocumentItem, BaseHistorizedItem, QRCodeItem, APP = "archaeological-operations" MODEL = "archaeological-site" SHOW_URL = 'show-site' + DELETE_URL = 'delete-site' TABLE_COLS = ['reference', 'name', 'cached_towns_label', 'cached_periods', 'cached_remains'] NEW_QUERY_ENGINE = True @@ -596,6 +597,7 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem, QRCodeItem, APP = "archaeological-operations" MODEL = "operation" SHOW_URL = 'show-operation' + DELETE_URL = 'delete-operation' TABLE_COLS = ['code_patriarche', 'year', 'cached_towns_label', 'common_name', 'operation_type__label', 'start_date', 'excavation_end_date', 'cached_remains'] @@ -2052,6 +2054,8 @@ class AdministrativeAct(BaseHistorizedItem, OwnPerms, ValueGetter): @property def DELETE_URL(self): + if self.operation: + return 'delete-administrativeact-operation' if self.associated_file: return 'delete-administrativeact-file' if self.treatment: |