diff options
| 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 | 
| commit | 29bace24d91984f2f6d5884a8094e2ddeb5d74d9 (patch) | |
| tree | 1d5f2587ea0e57815e2c047529709771adbef4d8 | |
| parent | 70b9b0ee4812b377a6abc4f74cc405b2ee246776 (diff) | |
| download | Ishtar-29bace24d91984f2f6d5884a8094e2ddeb5d74d9.tar.bz2 Ishtar-29bace24d91984f2f6d5884a8094e2ddeb5d74d9.zip | |
Operation source: show index on table and sheet
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | archaeological_operations/models.py | 2 | ||||
| -rw-r--r-- | ishtar_common/templates/ishtar/sheet_source.html | 1 | 
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 %} | 
