summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-12-29 18:26:54 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-12-29 18:28:18 +0100
commit70d050cb7de7c5620cf5992db5a281669cfef958 (patch)
tree648da5accc2a93a9ff5c0c80dd1ddc09f6bc708f /archaeological_operations/models.py
parent535d091d8b2ecacbcc9ae7d32a80596aa60ed62f (diff)
downloadIshtar-70d050cb7de7c5620cf5992db5a281669cfef958.tar.bz2
Ishtar-70d050cb7de7c5620cf5992db5a281669cfef958.zip
Add a template for operation sources
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index d0059da9e..795c1a805 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -134,6 +134,7 @@ QUALITY = (('ND', _(u"Not documented")),
class Operation(BaseHistorizedItem, OwnPerms, ValueGetter, ShortMenuItem,
DashboardFormItem):
QUALITY_DICT = dict(QUALITY)
+ SHOW_URL = 'show-operation'
TABLE_COLS = ['year_index', 'operation_type', 'remains', 'towns',
'start_date', 'excavation_end_date']
if FILES_AVAILABLE:
@@ -522,6 +523,7 @@ class OperationSource(Source):
null=True)
TABLE_COLS = ['operation.year', 'operation.operation_code'] + \
Source.TABLE_COLS
+ SHOW_URL = 'show-operationsource'
@property
def owner(self):