summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_treatments.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-13 14:13:46 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-13 14:13:46 +0200
commit6969da6fc4bc8b551d94ca328400e7609c50595d (patch)
tree8abead0cd473127fcbd18fd9581470af8f48e654 /archaeological_finds/models_treatments.py
parent2e608dde86b1de6fa5b66ebbbcd8c1b719981b45 (diff)
downloadIshtar-6969da6fc4bc8b551d94ca328400e7609c50595d.tar.bz2
Ishtar-6969da6fc4bc8b551d94ca328400e7609c50595d.zip
Delete action: context records, files, finds, treatments, treatments files, admin acts
Diffstat (limited to 'archaeological_finds/models_treatments.py')
-rw-r--r--archaeological_finds/models_treatments.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py
index 120dfe6f2..07eeef260 100644
--- a/archaeological_finds/models_treatments.py
+++ b/archaeological_finds/models_treatments.py
@@ -68,6 +68,7 @@ class Treatment(DashboardFormItem, ValueGetter, DocumentItem,
BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):
SLUG = 'treatment'
SHOW_URL = 'show-treatment'
+ DELETE_URL = 'delete-treatment'
TABLE_COLS = ('year', 'index', 'treatment_types__label',
'treatment_state__label',
'label', 'person__cached_label',
@@ -873,6 +874,7 @@ class TreatmentFile(DashboardFormItem, ClosedItem, DocumentItem,
BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem):
SLUG = 'treatmentfile'
SHOW_URL = 'show-treatmentfile'
+ DELETE_URL = 'delete-treatmentfile'
TABLE_COLS = ['type', 'year', 'index', 'internal_reference', 'name']
BASE_SEARCH_VECTORS = [
SearchVectorConfig("type__label"),