summaryrefslogtreecommitdiff
path: root/archaeological_finds/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-09-05 19:42:34 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-09-05 19:42:34 +0200
commit8626ef982c690f7f55443e2d8dc8a0348acda9ae (patch)
tree796f920c37ba357440f2ed7c48f31a05fc6f51c0 /archaeological_finds/models.py
parentab4922e895dda6ce778f2cce785dc69f8d210288 (diff)
downloadIshtar-8626ef982c690f7f55443e2d8dc8a0348acda9ae.tar.bz2
Ishtar-8626ef982c690f7f55443e2d8dc8a0348acda9ae.zip
Add town and parcel to find tables (refs #3178)
Diffstat (limited to 'archaeological_finds/models.py')
-rw-r--r--archaeological_finds/models.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py
index e5d63b751..15ed32120 100644
--- a/archaeological_finds/models.py
+++ b/archaeological_finds/models.py
@@ -280,7 +280,9 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):
'base_finds.context_record.operation.year',
'base_finds.context_record.operation.operation_code',
'container.reference', 'container.location',
- 'base_finds.batch']
+ 'base_finds.batch',
+ 'base_finds.context_record.parcel.town',
+ 'base_finds.context_record.parcel', ]
if settings.COUNTRY == 'fr':
TABLE_COLS.insert(
6, 'base_finds.context_record.operation.code_patriarche')
@@ -289,7 +291,9 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):
'base_finds.cache_complete_id',
'previous_id', 'label', 'material_types',
'datings.period', 'find_number', 'object_types',
- 'description']
+ 'description',
+ 'base_finds.context_record.parcel.town',
+ 'base_finds.context_record.parcel', ]
EXTRA_FULL_FIELDS = [
'base_finds.cache_short_id', 'base_finds.cache_complete_id',