summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-22 13:33:41 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-22 13:33:41 +0200
commit5e26d52a6268f2aa04d82108431463b184d45cb7 (patch)
tree1d5f2587ea0e57815e2c047529709771adbef4d8
parent43ed9eb077e0d24b4ff0906fce1d147887946887 (diff)
downloadIshtar-5e26d52a6268f2aa04d82108431463b184d45cb7.tar.bz2
Ishtar-5e26d52a6268f2aa04d82108431463b184d45cb7.zip
Operation source: show index on table and sheet
-rw-r--r--.gitignore1
-rw-r--r--archaeological_operations/models.py2
-rw-r--r--ishtar_common/templates/ishtar/sheet_source.html1
3 files changed, 3 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 0aeb8dee4..d04cb7f2f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,6 +8,7 @@ ishtar-docs
ishtar-logo
*.ignore
*.ignore.py
+*.ignore.sql
local_settings.py
fabfile.py
example_project/media
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 3a7586e59..ab6b3abac 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -517,7 +517,7 @@ class OperationSource(Source):
related_name="source")
index = models.IntegerField(verbose_name=_(u"Index"), blank=True,
null=True)
- TABLE_COLS = ['operation.year', 'operation.operation_code'] + \
+ TABLE_COLS = ['operation.year', 'operation.operation_code', 'index'] + \
Source.TABLE_COLS
SHOW_URL = 'show-operationsource'
MODIFY_URL = 'operation_source_modify'
diff --git a/ishtar_common/templates/ishtar/sheet_source.html b/ishtar_common/templates/ishtar/sheet_source.html
index ae3a67b5f..bda22ed35 100644
--- a/ishtar_common/templates/ishtar/sheet_source.html
+++ b/ishtar_common/templates/ishtar/sheet_source.html
@@ -4,6 +4,7 @@
{% block content %}
{% block general %}
{% field "Title" item.title %}
+{% field "Index" item.index %}
{% field "Source type" item.source_type %}
{% field "Format type" item.format_type %}
{% field "Scale" item.scale %}