summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-04-13 13:23:35 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-04-13 13:23:35 +0200
commitabdd99265410d6a163c8b0f74dcba0f6f0664f70 (patch)
tree71d968e3d0b0571b4c1d1bef036774f30e98dbcf /archaeological_finds/models_finds.py
parentda7803b9cc920cad30d0c19bb503f2360bcc8dc3 (diff)
downloadIshtar-abdd99265410d6a163c8b0f74dcba0f6f0664f70.tar.bz2
Ishtar-abdd99265410d6a163c8b0f74dcba0f6f0664f70.zip
New type of operation: court-ordered seizure with associated fields (refs #4048)
* models * migrations * wizard panel * forms * sheet
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r--archaeological_finds/models_finds.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index ae3c45579..ecb4d049b 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -559,7 +559,8 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel,
CHECK_DICT = dict(CHECK_CHOICES)
SHOW_URL = 'show-find'
SLUG = 'find'
- TABLE_COLS = ['external_id', 'label', 'base_finds__context_record__parcel__town__name',
+ TABLE_COLS = ['external_id', 'label',
+ 'base_finds__context_record__parcel__town__name',
'base_finds__context_record__operation__common_name',
'base_finds__context_record__label',
'material_types__label', 'object_types__label',
@@ -683,6 +684,10 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel,
external_id = models.TextField(_(u"External ID"), blank=True, null=True)
auto_external_id = models.BooleanField(
_(u"External ID is set automatically"), default=False)
+ # judiciary operation
+ seal_number = models.TextField(
+ _(u"Seal number"), blank=True, null=True
+ )
order = models.IntegerField(_(u"Order"), default=1)
label = models.TextField(_(u"Free ID"))
denomination = models.TextField(_(u"Denomination"), blank=True, null=True)